19 minChannelEntries_(0),
20 expectedAmplitude_(0),
21 toleranceAmplitudeLo_(0.),
22 toleranceAmplitudeHi_(0.),
23 toleranceAmpRMSRatio_(0.),
27 expectedPNAmplitude_(0),
29 tolerancePNRMSRatio_(0.),
47 std::vector<int> laserWavelengths(_params.
getUntrackedParameter<std::vector<int> >(
"laserWavelengths"));
56 unsigned nWL(laserWavelengths.size());
57 for(
unsigned iWL(0); iWL != nWL; ++iWL){
58 int wl(laserWavelengths[iWL]);
59 if(wl <= 0 || wl >= 5)
throw cms::Exception(
"InvalidConfiguration") <<
"Laser Wavelength";
60 repl[
"wl"] = std::to_string(wl);
68 std::vector<double> inExpectedAmplitude(_params.
getUntrackedParameter<std::vector<double> >(
"expectedAmplitude"));
69 std::vector<double> inExpectedTiming(_params.
getUntrackedParameter<std::vector<double> >(
"expectedTiming"));
70 std::vector<double> inExpectedPNAmplitude(_params.
getUntrackedParameter<std::vector<double> >(
"expectedPNAmplitude"));
72 for(std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr){
73 unsigned iME(wlItr->second);
74 int iWL(wlItr->first - 1);
93 MESetMulti& meQuality(static_cast<MESetMulti&>(
MEs_.at(
"Quality")));
94 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"QualitySummary")));
95 MESetMulti& meAmplitudeMean(static_cast<MESetMulti&>(
MEs_.at(
"AmplitudeMean")));
96 MESetMulti& meAmplitudeRMS(static_cast<MESetMulti&>(
MEs_.at(
"AmplitudeRMS")));
97 MESetMulti& meTimingMean(static_cast<MESetMulti&>(
MEs_.at(
"TimingMean")));
98 MESetMulti& meTimingRMSMap(static_cast<MESetMulti&>(
MEs_.at(
"TimingRMSMap")));
99 MESetMulti& meTimingRMS(static_cast<MESetMulti&>(
MEs_.at(
"TimingRMS")));
100 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"PNQualitySummary")));
102 MESetMulti const& sAmplitude(static_cast<MESetMulti const&>(
sources_.at(
"Amplitude")));
104 MESetMulti const& sPNAmplitude(static_cast<MESetMulti const&>(
sources_.at(
"PNAmplitude")));
105 MESet const& sCalibStatus(static_cast<MESet const&>(
sources_.at(
"CalibStatus")));
107 for(std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr){
108 meQuality.
use(wlItr->second);
109 meQualitySummary.
use(wlItr->second);
110 meAmplitudeMean.
use(wlItr->second);
111 meAmplitudeRMS.
use(wlItr->second);
112 meTimingMean.
use(wlItr->second);
113 meTimingRMSMap.
use(wlItr->second);
114 meTimingRMS.
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-1);
136 float aEntries(aItr->getBinEntries());
143 float aMean(aItr->getBinContent());
144 float aRms(aItr->getBinError() *
sqrt(aEntries));
146 meAmplitudeMean.
fill(
id, aMean);
151 float tEntries(tItr->getBinEntries());
155 float tMean(tItr->getBinContent());
156 float tRms(tItr->getBinError() *
sqrt(tEntries));
158 meTimingMean.
fill(
id, tMean);
159 meTimingRMS.
fill(
id, tRms);
169 qItr->setBinContent(doMask ?
kMBad :
kBad);
176 for(
unsigned iDCC(0); iDCC <
nDCC; ++iDCC){
178 if(
memDCCIndex(iDCC + 1) ==
unsigned(-1))
continue;
183 for(
unsigned iPN(0); iPN < 10; ++iPN){
unsigned memDCCIndex(unsigned)
T getUntrackedParameter(std::string const &, T const &) const
float toleranceAmplitudeHi_
static const int LASER_MEAN_ERROR
void towerAverage_(MESet &, MESet const &, float)
#define DEFINE_ECALDQM_WORKER(TYPE)
static const int LASER_TIMING_RMS_ERROR
double getBinContent(DetId const &_id, int _bin=0) const override
void setBinContent(DetId const &_id, double _content) override
double getBinError(DetId const &_id, int _bin=0) const override
bool isForward(DetId const &)
std::map< int, unsigned > wlToME_
const_iterator & toNextChannel()
void fill(DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
const_iterator beginChannel() const override
std::set< std::string > qualitySummaries_
virtual double getBinContent(DetId const &, int=0) const
void setParams(edm::ParameterSet const &) override
std::vector< float > expectedPNAmplitude_
float toleranceAmplitudeLo_
StatusManager const * statusManager_
float tolerancePNRMSRatio_
Abs< T >::type abs(const T &t)
bool maskMatches(DetId const &_id, uint32_t _mask, StatusManager const *_statusManager) const override
void producePlots(ProcessType) override
std::vector< float > expectedAmplitude_
const_iterator end() const override
static const int LASER_TIMING_MEAN_ERROR
double getBinEntries(DetId const &_id, int _bin=0) const override
std::vector< float > expectedTiming_
float toleranceAmpRMSRatio_
static const int LASER_RMS_ERROR
std::map< std::string, std::string > PathReplacements
unsigned getIndex(PathReplacements const &) const