CMS 3D CMS Logo

QTestConfigure.h
Go to the documentation of this file.
1 #ifndef QTestConfigure_H
2 #define QTestConfigure_H
3 
14 
15 #include<map>
16 #include<vector>
17 #include<iostream>
18 
19 
21 
22  public:
23 
29  bool enableTests(const std::map<std::string, std::map<std::string, std::string> >& tests, DQMStore * bei);
31  void disableTests(const std::vector<std::string>& testsOFFList, DQMStore * bei);
33  std::vector<std::string> testsReady(){return testsConfigured;}
34 
35  private:
36 
38  void EnableXRangeTest(std::string testName,
39  const std::map<std::string, std::string>& params,DQMStore * bei);
41 // void EnableXRangeASTest(std::string testName,
42 // std::map<std::string, std::string>params,DQMStore * bei);
44  void EnableYRangeTest(std::string testName,
45  const std::map<std::string, std::string>& params,DQMStore * bei);
47 // void EnableYRangeASTest(std::string testName,
48 // std::map<std::string, std::string>params,DQMStore * bei);
50  void EnableDeadChannelTest(std::string testName,
51  const std::map<std::string,std::string>& params,DQMStore * bei);
53  void EnableNoisyChannelTest(std::string testName,
54  const std::map<std::string,std::string>& params,DQMStore * bei);
56  void EnableContentSigmaTest(std::string testName,
57  const std::map<std::string,std::string>& params,DQMStore * bei);
60  const std::map<std::string,std::string>& params,DQMStore * bei);
61 
62  //===================== new quality tests in the parser =============================//
65  const std::map<std::string, std::string>& params,DQMStore * bei);
66 
68  void EnableComp2RefChi2Test(std::string testName,
69  const std::map<std::string, std::string>& params,DQMStore * bei);
70 
73  const std::map<std::string, std::string>& params,DQMStore * bei);
74 
77  const std::map<std::string, std::string>& params,DQMStore * bei);
78 
79  /*
81  void EnableMostProbableLandauTest( const std::string &roTEST_NAME,
82  std::map<std::string, std::string> &roMParams, DQMStore *bei);
83  */
84 
87  const std::map<std::string,std::string>& params,DQMStore * bei);
88 
90 // void EnableContentsWithinExpectedASTest(std::string testName,
91 // std::map<std::string,std::string> params,DQMStore * bei);
92 
95  const std::map<std::string,std::string>& params,DQMStore * bei);
96 
98  void EnableCompareLastFilledBinTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore *bei);
99 
101  void EnableCheckVarianceTest(std::string testName,
102  const std::map<std::string,std::string>& params, DQMStore * bei);
103 
104  const char * findOrDefault(const std::map<std::string, std::string> &,
105  const char *,
106  const char *) const;
107 
108 
109  private:
110  std::vector<std::string> testsConfigured;
111 
112 
113 };
114 
115 
116 #endif
117 
void EnableContentSigmaTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates ContentSigmaROOT test.
void EnableNoisyChannelTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates NoisyChannelROOT test.
void EnableYRangeTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates ContentsXRangeASROOT test.
void EnableComp2Ref2DChi2Test(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates Comp2Ref2DChi2 test.
std::vector< std::string > testsReady()
Returns the vector containing the names of the quality tests that have been created.
void EnableCompareToMedianTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates ContentsWithinRangeROOT test.
void EnableCheckVarianceTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates CheckVariance test.
QTestConfigure()
Constructor.
void disableTests(const std::vector< std::string > &testsOFFList, DQMStore *bei)
Disables the Quality Tests in the string list.
void EnableComp2RefEqualHTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates Comp2RefEqualH test.
std::vector< std::string > testsConfigured
void EnableXRangeTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates ContentsXRangeROOT test.
void EnableMeanWithinExpectedTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates MeanWithinExpectedROOT test.
const char * findOrDefault(const std::map< std::string, std::string > &, const char *, const char *) const
~QTestConfigure()
Destructor.
void EnableDeadChannelTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates ContentsYRangeASROOT test.
bool enableTests(const std::map< std::string, std::map< std::string, std::string > > &tests, DQMStore *bei)
Creates and defines quality tests.
void EnableComp2RefKolmogorovTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates EnableComp2RefKolmogorov test.
void EnableContentsWithinExpectedTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates ContentsWithinRangeROOT test.
void EnableCompareLastFilledBinTest(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates EnableCompareLastFilledBinTest test.
void EnableComp2RefChi2Test(std::string testName, const std::map< std::string, std::string > &params, DQMStore *bei)
Creates Comp2RefChi2 test.