14 std::vector<Item>::const_iterator cell;
19 if (fWarning)
std::cerr <<
"HcalDQMChannelQuality::quality-> container is not sorted. Sort it to search effectively" << std::endl;
22 if (cell ==
mItems.end() || cell->mId != fId)
23 throw cms::Exception (
"Conditions not found") <<
"Unavailable Quality for cell " << fId;
31 std::vector<Item>::const_iterator cell;
36 if (fWarning)
std::cerr <<
"HcalDQMChannelQuality::quality-> container is not sorted. Sort it to search effectively" << std::endl;
39 if (cell ==
mItems.end() || cell->mId != fId)
40 throw cms::Exception (
"Conditions not found") <<
"Unavailable Quality for cell " << fId;
49 std::vector<Item>::const_iterator cell;
54 if (fWarning)
std::cerr <<
"HcalDQMChannelQuality::quality-> container is not sorted. Sort it to search effectively" << std::endl;
57 if (cell ==
mItems.end() || cell->mId != fId)
58 throw cms::Exception (
"Conditions not found") <<
"Unavailable Quality for cell " << fId;
64 std::vector<unsigned long>
result;
65 for (std::vector<Item>::const_iterator item =
mItems.begin (); item !=
mItems.end (); item++) {
66 result.push_back (item->mId);
83 case BAD:
return true;
84 case HOT:
return true;
85 case GOOD:
return false;
86 case COOL:
return false;
87 case DEAD:
return false;
88 case END:
return false;
89 default:
return false;
102 case BAD:
return "BAD";
103 case GOOD:
return "GOOD";
104 case COOL:
return "COOL";
105 case HOT:
return "HOT";
106 case DEAD:
return "DEAD";
107 case END:
return "END";
108 default:
return "UNKNOWN";
unsigned short flagAlgo(unsigned long fId, bool fWarning=true) const
std::vector< Item > mItems
Quality quality(unsigned long fId, bool fWarning=true) const
static const char * str(Quality fQuality)
bool maskCell(Quality fQual) const
bool setChannel(unsigned long fId, unsigned short algo, Quality fQuality=UNKNOWN)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< unsigned long > getAllChannels() const
bool isMasked(unsigned long fId, bool fWarning=true) const
volatile std::atomic< bool > shutdown_flag false