00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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 }
00045 #endif