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 
20 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:
37  void EnableXRangeTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore* bei);
39  // void EnableXRangeASTest(std::string testName,
40  // std::map<std::string, std::string>params,DQMStore * bei);
42  void EnableYRangeTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore* bei);
44  // void EnableYRangeASTest(std::string testName,
45  // std::map<std::string, std::string>params,DQMStore * bei);
47  void EnableDeadChannelTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore* bei);
49  void EnableNoisyChannelTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore* bei);
51  void EnableContentSigmaTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore* bei);
54  const std::map<std::string, std::string>& params,
55  DQMStore* bei);
56 
57  //===================== new quality tests in the parser =============================//
60  const std::map<std::string, std::string>& params,
61  DQMStore* bei);
62 
64  // void EnableContentsWithinExpectedASTest(std::string testName,
65  // std::map<std::string,std::string> params,DQMStore * bei);
66 
68  void EnableCompareToMedianTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore* bei);
69 
72  const std::map<std::string, std::string>& params,
73  DQMStore* bei);
74 
76  void EnableCheckVarianceTest(std::string testName, const std::map<std::string, std::string>& params, DQMStore* bei);
77 
78  const char* findOrDefault(const std::map<std::string, std::string>&, const char*, const char*) const;
79 
80 private:
81  std::vector<std::string> testsConfigured;
82 };
83 
84 #endif
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.
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.
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
dqm::harvesting::DQMStore DQMStore
dqm::harvesting::MonitorElement MonitorElement
~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 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.