20 std::pair<std::string,std::string> statement;
24 statement.first =
"Errors detected in quality tests";
25 statement.second=
"red";
28 statement.first =
"Warnings detected in quality tests";
29 statement.second=
"orange";
32 statement.first=
"Some tests did not run";
33 statement.second=
"black";
36 statement.first=
"No problems detected in quality tests ";
37 statement.second=
"green";
45 std::vector<std::string> allPathNames=this->
fullPathNames(bei);
55 for(std::vector<std::string>::const_iterator fullMePath=allPathNames.begin();fullMePath!=allPathNames.end(); ++fullMePath ){
58 me= bei->
get(*fullMePath);
61 std::vector<QReport *>
report;
76 for(std::vector<QReport *>::iterator itr=report.begin(); itr!=report.end();++itr ){
78 std::vector<std::string> messageList;
82 messageList.push_back(text);
88 messageList.push_back(text);
104 std::vector<std::string> contentVec;
106 for (std::vector<std::string>::iterator it = contentVec.begin();
107 it != contentVec.end(); it++) {
112 std::string meCollectionName=it->substr(dirCharNumber+1);
117 if(reminingNames.find(
",") == std::string::npos) anotherME =
false;
119 std::string singleMeName=reminingNames.substr(0 , singleMeNameCharNumber );
121 contents.push_back(fullpath);
122 reminingNames=reminingNames.substr(singleMeNameCharNumber+1);
int getStatus(const std::string &path="") const
std::vector< QReport * > getQOthers() const
~QTestStatusChecker()
Destructor.
bool hasError() const
true if at least of one of the quality tests returned an error
bool hasOtherReport() const
true if at least of one of the tests returned some other (non-ok) status
std::map< std::string, std::vector< std::string > > detailedWarnings
bool hasWarning() const
true if at least of one of the quality tests returned a warning
QTestStatusChecker()
Creator.
void processAlarms(const std::vector< std::string > &allPathNames, DQMStore *bei)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
std::vector< QReport * > getQErrors() const
get errors from last set of quality tests
std::vector< MonitorElement * > getContents(const std::string &path) const
std::vector< std::string > fullPathNames(DQMStore *bei)
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 ...
std::map< std::string, std::vector< std::string > > checkDetailedStatus(DQMStore *bei)
Check status of quality tests for individual ME's.
std::vector< QReport * > getQWarnings() const
get warnings from last set of quality tests