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 "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 }
00044 #endif