22 std::pair<std::string,std::string> statement;
26 statement.first =
"Errors detected in quality tests";
27 statement.second=
"red";
30 statement.first =
"Warnings detected in quality tests";
31 statement.second=
"orange";
34 statement.first=
"Some tests did not run";
35 statement.second=
"black";
38 statement.first=
"No problems detected in quality tests ";
39 statement.second=
"green";
47 std::vector<std::string> allPathNames=this->
fullPathNames(bei);
57 for(std::vector<std::string>::iterator fullMePath=allPathNames.begin();fullMePath!=allPathNames.end(); ++fullMePath ){
60 me= bei->
get(*fullMePath);
63 std::vector<QReport *>
report;
78 for(std::vector<QReport *>::iterator itr=report.begin(); itr!=report.end();++itr ){
79 std::string
text= (*fullMePath) + (*itr)->getMessage();
80 std::vector<std::string> messageList;
84 messageList.push_back(text);
90 messageList.push_back(text);
106 std::vector<std::string> contentVec;
108 for (std::vector<std::string>::iterator it = contentVec.begin();
109 it != contentVec.end(); it++) {
112 std::string
dirName=it->substr(0 , dirCharNumber);
114 std::string meCollectionName=it->substr(dirCharNumber+1);
116 std::string reminingNames=meCollectionName;
119 if(reminingNames.find(
",") == std::string::npos) anotherME =
false;
121 std::string singleMeName=reminingNames.substr(0 , singleMeNameCharNumber );
122 std::string fullpath=dirName + singleMeName;
123 contents.push_back(fullpath);
124 reminingNames=reminingNames.substr(singleMeNameCharNumber+1);
int getStatus(const std::string &path="") const
~QTestStatusChecker()
Destructor.
bool hasError(void) const
true if at least of one of the quality tests returned an error
std::map< std::string, std::vector< std::string > > detailedWarnings
std::vector< QReport * > getQErrors(void) const
get errors from last set of quality tests
bool hasWarning(void) const
true if at least of one of the quality tests returned a warning
QTestStatusChecker()
Creator.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
std::vector< MonitorElement * > getContents(const std::string &path) const
std::vector< QReport * > getQOthers(void) const
std::vector< std::string > fullPathNames(DQMStore *bei)
bool hasOtherReport(void) const
true if at least of one of the tests returned some other (non-ok) status
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(void) const
get warnings from last set of quality tests
void processAlarms(std::vector< std::string > allPathNames, DQMStore *bei)