Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

SimpleTestStatisticLabel.h

Go to the documentation of this file.
00001 // ================================================
00002 // SimpleTestStatisticLabel class description
00003 // ================================================
00004 //
00005 // THIS TEXT TO BE REPLACED BY ATLAS STANDARD FORMAT
00006 //
00007 // Namespace Atlfast::
00008 //
00009 // class: SimpleTestStatisticLabel
00010 //
00011 // Authors: P.Clarke, H.Phillips, E.Richter-Was, P.Sherwood, R.Steward
00012 //
00013 // Description: 
00014 //
00015 //  Function object to help use of  SimpleTestStatistic with STL calls
00016 #ifndef ATLFAST_SIMPLETESTSTATISTICLABEL_H
00017 #define ATLFAST_SIMPLETESTSTATISTICLABEL_H
00018 #include <string>
00019 #include "AtlfastEvent/SimpleTestStatistic.h"
00020 namespace Atlfast {
00021   using std::string;
00025   class SimpleTestStatisticLabel{
00026   public:
00027 
00028     SimpleTestStatisticLabel(std::string label): m_label(label){}
00029 
00030     SimpleTestStatisticLabel(SimpleTestStatistic* s) {
00031       m_label =s->m_quartet.first;
00032     }
00033 
00034     bool operator()(const SimpleTestStatistic& s) const{ 
00035       return ( (s.m_quartet.first) == m_label);
00036     }
00037 
00038     bool operator()(const SimpleTestStatistic* s) const{ 
00039       return ( (s->m_quartet.first) == m_label);
00040     }
00041   private:
00042     std::string m_label;
00043   };
00044 } // end of namespace 
00045 #endif

Generated on Wed May 1 14:11:32 2002 for AtlfastAlgs by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001