18 minChannelEntries_(0),
19 expectedAmplitude_(0),
20 toleranceAmplitude_(0.),
21 toleranceAmpRMSRatio_(0.),
25 expectedPNAmplitude_(0),
27 tolerancePNRMSRatio_(0.),
50 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
52 if (
wl != 1 &&
wl != 2)
62 std::vector<double> inExpectedAmplitude(
_params.getUntrackedParameter<std::vector<double> >(
"expectedAmplitude"));
63 std::vector<double> inExpectedTiming(
_params.getUntrackedParameter<std::vector<double> >(
"expectedTiming"));
64 std::vector<double> inExpectedPNAmplitude(
65 _params.getUntrackedParameter<std::vector<double> >(
"expectedPNAmplitude"));
67 for (std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr) {
68 unsigned iME(wlItr->second);
69 int iWL(wlItr->first - 1);
78 infile.open((SClistpath).c_str());
82 infile >> ix >> iy >> iz >> detid;
96 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"QualitySummary")));
97 MESetMulti& meAmplitudeMean(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeMean")));
98 MESetMulti& meAmplitudeRMS(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeRMS")));
100 MESetMulti& meTimingRMSMap(static_cast<MESetMulti&>(
MEs_.
at(
"TimingRMSMap")));
101 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"PNQualitySummary")));
106 MESet const& sCalibStatus(static_cast<MESet const&>(
sources_.
at(
"CalibStatus")));
108 for (std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr) {
109 meQuality.
use(wlItr->second);
110 meQualitySummary.
use(wlItr->second);
111 meAmplitudeMean.
use(wlItr->second);
112 meAmplitudeRMS.
use(wlItr->second);
113 meTimingMean.
use(wlItr->second);
114 meTimingRMSMap.
use(wlItr->second);
115 mePNQualitySummary.
use(wlItr->second);
117 sAmplitude.
use(wlItr->second);
118 sTiming.
use(wlItr->second);
119 sPNAmplitude.
use(wlItr->second);
126 int wl(wlItr->first + 3);
136 float aEntries(aItr->getBinEntries());
143 float aMean(aItr->getBinContent());
144 float aRms(aItr->getBinError() *
sqrt(aEntries));
151 float tEntries(tItr->getBinEntries());
156 float tMean(tItr->getBinContent());
157 float tRms(tItr->getBinError() *
sqrt(tEntries));
174 qItr->setBinContent(doMask ?
kMBad :
kBad);
178 if (intensity < toleranceAmplitude_ || aRms > aRmsThr ||
180 qItr->setBinContent(doMask ?
kMBad :
kBad);
188 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
194 for (
unsigned iPN(0); iPN < 10; ++iPN) {
static const int LED_MEAN_ERROR
unsigned memDCCIndex(unsigned)
void setParams(edm::ParameterSet const &) override
void towerAverage_(MESet &, MESet const &, float)
#define DEFINE_ECALDQM_WORKER(TYPE)
std::string fullPath() const
MESet & at(const std::string &key)
const_iterator & toNextChannel(EcalElectronicsMapping const *electronicsMap)
double toleranceAmplitude_
double getBinContent(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
bool isForward(DetId const &)
const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const override
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::map< int, unsigned > wlToME_
static std::string to_string(const XMLCh *ch)
void fill(EcalDQMSetupObjects const edso, DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
virtual double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const
std::set< std::string > qualitySummaries_
std::vector< double > expectedTiming_
StatusManager const * statusManager_
void setBinContent(EcalDQMSetupObjects const edso, DetId const &_id, double _content) override
std::vector< double > expectedAmplitude_
Abs< T >::type abs(const T &t)
std::vector< double > expectedPNAmplitude_
static const int LED_TIMING_MEAN_ERROR
double toleranceAmpRMSRatio_
double getBinError(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
EcalElectronicsMapping const * GetElectronicsMap()
EcalDQMSetupObjects const getEcalDQMSetupObjects()
double getBinEntries(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
static const int LED_TIMING_RMS_ERROR
void producePlots(ProcessType) override
std::vector< uint32_t > SClist_
static const int LED_RMS_ERROR
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
bool maskMatches(DetId const &_id, uint32_t _mask, StatusManager const *_statusManager, EcalTrigTowerConstituentsMap const *trigTowerMap) const override
std::map< std::string, std::string > PathReplacements
const_iterator end(EcalElectronicsMapping const *electronicsMap) const override
Power< A, B >::type pow(const A &a, const B &b)
double tolerancePNRMSRatio_