1 #include "../interface/IntegrityClient.h"
15 errFractionThreshold_(0.)
45 MESet& meQualitySummary(
MEs_.at(
"QualitySummary"));
60 DetId id( chSItr->getId() );
76 uint16_t code( chIt->getEncodedStatusCode() );
77 chSItr->setBinContent( code );
88 DetId id(qItr->getId());
92 float entries(occItr->getBinContent());
94 float gain(sGain.getBinContent(
id));
95 float chid(sChId.getBinContent(
id));
96 float gainswitch(sGainSwitch.getBinContent(
id));
98 float towerid(sTowerId.getBinContent(
id));
99 float blocksize(sBlockSize.getBinContent(
id));
101 if(entries + gain + chid + gainswitch + towerid + blocksize < 1.){
103 meQualitySummary.setBinContent(
id, doMask ?
kMUnknown : kUnknown);
107 float chErr((gain + chid + gainswitch + towerid + blocksize) / (entries + gain + chid + gainswitch + towerid + blocksize));
110 qItr->setBinContent(doMask ?
kMBad :
kBad);
111 meQualitySummary.setBinContent(
id, doMask ?
kMBad : kBad);
115 meQualitySummary.setBinContent(
id, doMask ?
kMGood : kGood);
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_ECALDQM_WORKER(TYPE)
void producePlots(ProcessType) override
edm::ESHandle< EcalChannelStatus > chStatus
static const int TT_SIZE_ERROR
static const int CH_GAIN_SWITCH_ERROR
const_iterator & toNextChannel()
void setParams(edm::ParameterSet const &) override
std::set< std::string > qualitySummaries_
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
StatusManager const * statusManager_
static const int CH_GAIN_ZERO_ERROR
std::vector< Item >::const_iterator const_iterator
float errFractionThreshold_
static const int TT_ID_ERROR
static const int CH_ID_ERROR