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 "AtlfastCode/SimpleTestStatistic.h"
00020 namespace Atlfast {
00024   class SimpleTestStatisticLabel{
00025   public:
00026 
00027     SimpleTestStatisticLabel(std::string label): m_label(label){}
00028 
00029     SimpleTestStatisticLabel(SimpleTestStatistic* s) {
00030       m_label =s->m_quartet.first;
00031     }
00032 
00033     bool operator()(const SimpleTestStatistic& s) const{ 
00034       return ( (s.m_quartet.first) == m_label);
00035     }
00036 
00037     bool operator()(const SimpleTestStatistic* s) const{ 
00038       return ( (s->m_quartet.first) == m_label);
00039     }
00040   private:
00041     std::string m_label;
00042   };
00043 } // end of namespace 
00044 #endif

Generated on Thu Feb 21 14:30:47 2002 for Atlfast by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001