14 #include "boost/scoped_ptr.hpp" 18 std::atomic<bool> firstTime{
true};
52 std::map<std::string, std::map<std::string, std::string> > testsONList
68 std::map<std::string, std::vector<std::string> > mapMeToTests
73 const bool firstCaller = firstTime.compare_exchange_strong(expected,
false);
76 itr != mapMeToTests.end();
80 const std::vector<std::string> &
tests = itr->second;
82 for (std::vector<std::string>::const_iterator testsItr = tests.begin();
83 testsItr != tests.end(); ++testsItr){
85 if (firstCaller && verboseQT && cases == 0)
87 <<
" ==>> Invalid qtest xml: Link '"<< meName
88 <<
"', QTest '"<< *testsItr <<
"' - no matching ME! <<== ";
93 std::pair<std::string,std::string>
99 std::map< std::string, std::vector<std::string> >
void getDocument(std::string configFile, bool UseDB=false)
Methor that parses the xml file configFile.
std::map< std::string, std::vector< std::string > > checkDetailedQTStatus(DQMStore *bei) const
Checks alarms for single MonitorElements.
bool parseQTestsConfiguration()
Methor that parses the xml file configFile, returns false if no errors are encountered.
void attachTests(DQMStore *bei, bool verboseQT=true)
Attaches the quality tests to the MonitorElement.
~QTestHandle()
Destructor.
std::pair< std::string, std::string > checkGlobalQTStatus(DQMStore *bei) const
Checks global status of Quality Tests.
QTestConfigurationParser * qtParser
std::map< std::string, std::map< std::string, std::string > > testsList() const
Returns the Quality Tests list with their parameters obtained from the xml file.
QTestConfigure * qtConfigurer
void getNewDocument(std::string configFile, bool UseDB=false)
Parses a new Document.
std::map< std::string, std::vector< std::string > > meToTestsList() const
Returns the map between the MonitoElemnt and the list of tests requested for it.
QTestStatusChecker * qtChecker
std::pair< std::string, std::string > checkGlobalStatus(DQMStore *bei)
Check global status of Quality tests, returns a pair of string: message and color relative to global ...
bool configureTests(const std::string &configFile, DQMStore *bei, bool UseDB=false)
Parses Config File and configures the quality tests.
std::map< std::string, std::vector< std::string > > checkDetailedStatus(DQMStore *bei)
Check status of quality tests for individual ME's.
int useQTestByMatch(std::string const &pattern, std::string const &qtname)
attach quality test <qc> to monitor elements matching <pattern>.