17 std::pair<std::string, std::string> statement;
21 statement.first =
"Errors detected in quality tests";
22 statement.second =
"red";
25 statement.first =
"Warnings detected in quality tests";
26 statement.second =
"orange";
29 statement.first =
"Some tests did not run";
30 statement.second =
"black";
33 statement.first =
"No problems detected in quality tests ";
34 statement.second =
"green";
41 std::vector<std::string> allPathNames = this->
fullPathNames(bei);
49 for (std::vector<std::string>::const_iterator fullMePath = allPathNames.begin(); fullMePath != allPathNames.end();
52 me = bei->
get(*fullMePath);
55 std::vector<QReport *>
report;
70 for (std::vector<QReport *>::iterator itr = report.begin(); itr != report.end(); ++itr) {
72 std::vector<std::string> messageList;
75 messageList.push_back(text);
80 messageList.push_back(text);
90 std::vector<std::string> contentVec;
92 for (std::vector<std::string>::iterator it = contentVec.begin(); it != contentVec.end(); it++) {
96 std::string meCollectionName = it->substr(dirCharNumber + 1);
99 bool anotherME =
true;
101 if (reminingNames.find(
",") == std::string::npos)
104 std::string singleMeName = reminingNames.substr(0, singleMeNameCharNumber);
106 contents.push_back(fullpath);
107 reminingNames = reminingNames.substr(singleMeNameCharNumber + 1);
std::vector< QReport * > getQWarnings() const
get warnings from last set of quality tests
~QTestStatusChecker()
Destructor.
std::vector< MonitorElement * > getContents(std::string const &path) const
bool hasOtherReport() const
true if at least of one of the tests returned some other (non-ok) status
int getStatus(std::string const &path="") const
std::vector< QReport * > getQErrors() const
get errors from last set of quality tests
MonitorElement * get(std::string const &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
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)
std::vector< QReport * > getQOthers() const
from last set of quality tests
bool hasError() const
true if at least of one of the quality tests returned an error
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::map< std::string, std::vector< std::string > > detailedWarnings