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);
57  const std::map<std::string,std::string>& params,DQMStore * bei);
58 
59  //===================== new quality tests in the parser =============================//
62  const std::map<std::string, std::string>& params,DQMStore * bei);
63 
65  void EnableComp2RefChi2Test(std::string testName,
66  const std::map<std::string, std::string>& params,DQMStore * bei);
67 
70  const std::map<std::string, std::string>& params,DQMStore * bei);
71 
74  const std::map<std::string, std::string>& params,DQMStore * bei);
75 
76  /*
78  void EnableMostProbableLandauTest( const std::string &roTEST_NAME,
79  std::map<std::string, std::string> &roMParams, DQMStore *bei);
80  */
81 
84  const std::map<std::string,std::string>& params,DQMStore * bei);
85 
87 // void EnableContentsWithinExpectedASTest(std::string testName,
88 // std::map<std::string,std::string> params,DQMStore * bei);
89 
92  const std::map<std::string,std::string>& params,DQMStore * bei);
93 
95  void EnableCompareLastFilledBinTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore *bei);
96 
99  const std::map<std::string,std::string>& params, DQMStore * bei);
100 
101  const char * findOrDefault(const std::map<std::string, std::string> &,
102  const char *,
103  const char *) const;
104 
105 
106  private:
107  std::vector<std::string> testsConfigured;
108 
109 
110 };
111 
112 
113 #endif
114 
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.