18 minChannelEntries_(0),
19 expectedAmplitude_(0),
20 toleranceAmplitude_(0.),
21 toleranceAmpRMSRatio_(0.),
25 expectedPNAmplitude_(0),
27 tolerancePNRMSRatio_(0.),
49 unsigned nWL(ledWavelengths.size());
50 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
51 int wl(ledWavelengths[iWL]);
52 if (wl != 1 && wl != 2)
54 repl[
"wl"] = std::to_string(wl);
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(
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);
85 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"QualitySummary")));
86 MESetMulti& meAmplitudeMean(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeMean")));
87 MESetMulti& meAmplitudeRMS(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeRMS")));
89 MESetMulti& meTimingRMSMap(static_cast<MESetMulti&>(
MEs_.
at(
"TimingRMSMap")));
90 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"PNQualitySummary")));
95 MESet const& sCalibStatus(static_cast<MESet const&>(
sources_.
at(
"CalibStatus")));
97 for (std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr) {
98 meQuality.
use(wlItr->second);
99 meQualitySummary.
use(wlItr->second);
100 meAmplitudeMean.
use(wlItr->second);
101 meAmplitudeRMS.
use(wlItr->second);
102 meTimingMean.
use(wlItr->second);
103 meTimingRMSMap.
use(wlItr->second);
104 mePNQualitySummary.
use(wlItr->second);
106 sAmplitude.
use(wlItr->second);
107 sTiming.
use(wlItr->second);
108 sPNAmplitude.
use(wlItr->second);
115 int wl(wlItr->first + 3);
125 float aEntries(aItr->getBinEntries());
132 float aMean(aItr->getBinContent());
133 float aRms(aItr->getBinError() *
sqrt(aEntries));
140 float tEntries(tItr->getBinEntries());
145 float tMean(tItr->getBinContent());
146 float tRms(tItr->getBinError() *
sqrt(tEntries));
156 if (intensity < toleranceAmplitude_ || aRms > aRmsThr ||
158 qItr->setBinContent(doMask ?
kMBad :
kBad);
165 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
171 for (
unsigned iPN(0); iPN < 10; ++iPN) {
static const int LED_MEAN_ERROR
unsigned memDCCIndex(unsigned)
T getUntrackedParameter(std::string const &, T const &) const
void setParams(edm::ParameterSet const &) override
void towerAverage_(MESet &, MESet const &, float)
#define DEFINE_ECALDQM_WORKER(TYPE)
uint16_t *__restrict__ id
virtual double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) 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
std::map< int, unsigned > wlToME_
void fill(EcalDQMSetupObjects const edso, DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
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
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
EcalElectronicsMapping const * GetElectronicsMap()
static const int LED_RMS_ERROR
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
unsigned getIndex(PathReplacements const &) const
Power< A, B >::type pow(const A &a, const B &b)
double tolerancePNRMSRatio_