14 for (std::vector<std::string>::iterator it =
values.begin(); it !=
values.end(); it++)
15 (*it).insert(0, prefix_str);
23 dir_path =
name.substr(0, (
name.find(
':')));
32 if (
name.find(
name) == std::string::npos)
37 std::vector<std::string>
values;
39 for (std::vector<std::string>::iterator it =
values.begin(); it !=
values.end(); it++) {
40 if ((*it).find(me_name) != std::string::npos) {
41 full_path = prefix_str + (*it);
58 while (std::string::npos !=
pos || std::string::npos != lastPos) {
60 tokens.push_back(
str.substr(lastPos,
pos - lastPos));
63 lastPos =
str.find_first_not_of(delimiters,
pos);
66 pos =
str.find_first_of(delimiters, lastPos);
122 if (
me->getQReports().empty()) {
124 }
else if (
me->hasError()) {
126 }
else if (
me->hasWarning()) {
128 }
else if (
me->hasOtherReport()) {
140 std::vector<std::string>& mfolders) {
142 if (currDir.find(
"module_") != std::string::npos) {
144 mfolders.push_back(currDir);
147 for (std::vector<std::string>::const_iterator it =
subdirs.begin(); it !=
subdirs.end(); it++) {
159 if (
me->getQReports().empty()) {
163 std::vector<QReport*> qreports =
me->getQReports();
164 bad_channels = qreports[0]->getBadChannels().size();
165 if (
me->hasError()) {
167 }
else if (
me->hasWarning()) {
169 }
else if (
me->hasOtherReport()) {
199 std::vector<std::string> subDirVec = igetter.
getSubdirs();
200 for (std::vector<std::string>::const_iterator ic = subDirVec.begin(); ic != subDirVec.end(); ic++) {
202 if ((
fname.find(
"Reference") != std::string::npos) || (
fname.find(
"AlCaReco") != std::string::npos) ||
203 (
fname.find(
"HLT") != std::string::npos))
217 if (hname.find(
"FractionOfBadChannels") != std::string::npos)
219 else if (hname.find(
"NumberOfDigi") != std::string::npos)
221 else if (hname.find(
"NumberOfCluster") != std::string::npos)
223 else if (hname.find(
"ExcludedFedChannel") != std::string::npos)
225 else if (hname.find(
"DCSError") != std::string::npos)
233 message +=
" No Error";
236 if (((
flag >> 0) & 0
x1) > 0)
237 message +=
" Fed BadChannel : ";
238 if (((
flag >> 1) & 0
x1) > 0)
239 message +=
" # of Digi : ";
240 if (((
flag >> 2) & 0
x1) > 0)
241 message +=
" # of Clusters :";
242 if (((
flag >> 3) & 0
x1) > 0)
243 message +=
" Excluded FED Channel ";
244 if (((
flag >> 4) & 0
x1) > 0)
245 message +=
" DCSError ";
static void getModuleFolderList(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::vector< std::string > &m_ids)
virtual std::string pwd()
virtual bool dirExists(std::string const &path) const
std::string to_string(const V &value)
static int getMEList(std::string name, std::vector< std::string > &values)
static bool checkME(std::string element, std::string name, std::string &full_path)
static int getMEStatus(MonitorElement *me)
static void split(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
static void getBadModuleStatus(uint16_t flag, std::string &message)
static bool goToDir(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::string name)
static void getMEStatusColor(int status, int &rval, int &gval, int &bval)
static void setBadModuleFlag(std::string &hname, uint16_t &flg)
static void getMEValue(MonitorElement *me, std::string &val)
static const int STATUS_OK
static void getTopFolderPath(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::string top_dir, std::string &path)
virtual DQM_DEPRECATED std::vector< std::string > getSubdirs() const