18 minChannelEntries_(0),
19 expectedAmplitude_(0),
20 toleranceAmplitudeLo_(0.),
21 toleranceAmplitudeHi_(0.),
22 toleranceAmpRMSRatio_(0.),
26 expectedPNAmplitude_(0),
28 tolerancePNRMSRatio_(0.),
42 std::vector<int> laserWavelengths(_params.
getUntrackedParameter<std::vector<int> >(
"laserWavelengths"));
51 unsigned nWL(laserWavelengths.size());
52 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
53 int wl(laserWavelengths[iWL]);
54 if (wl <= 0 || wl >= 5)
55 throw cms::Exception(
"InvalidConfiguration") <<
"Laser Wavelength";
56 repl[
"wl"] = std::to_string(wl);
64 std::vector<double> inExpectedAmplitude(_params.
getUntrackedParameter<std::vector<double> >(
"expectedAmplitude"));
65 std::vector<double> inExpectedTiming(_params.
getUntrackedParameter<std::vector<double> >(
"expectedTiming"));
66 std::vector<double> inExpectedPNAmplitude(
69 for (std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr) {
70 unsigned iME(wlItr->second);
71 int iWL(wlItr->first - 1);
87 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"QualitySummary")));
88 MESetMulti& meAmplitudeMean(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeMean")));
89 MESetMulti& meAmplitudeRMS(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeRMS")));
91 MESetMulti& meTimingRMSMap(static_cast<MESetMulti&>(
MEs_.
at(
"TimingRMSMap")));
93 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"PNQualitySummary")));
98 MESet const& sCalibStatus(static_cast<MESet const&>(
sources_.
at(
"CalibStatus")));
100 for (std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr) {
101 meQuality.
use(wlItr->second);
102 meQualitySummary.
use(wlItr->second);
103 meAmplitudeMean.
use(wlItr->second);
104 meAmplitudeRMS.
use(wlItr->second);
105 meTimingMean.
use(wlItr->second);
106 meTimingRMSMap.
use(wlItr->second);
107 meTimingRMS.
use(wlItr->second);
108 mePNQualitySummary.
use(wlItr->second);
110 sAmplitude.
use(wlItr->second);
111 sTiming.
use(wlItr->second);
112 sPNAmplitude.
use(wlItr->second);
119 int wl(wlItr->first - 1);
129 float aEntries(aItr->getBinEntries());
136 float aMean(aItr->getBinContent());
137 float aRms(aItr->getBinError() *
sqrt(aEntries));
144 float tEntries(tItr->getBinEntries());
149 float tMean(tItr->getBinContent());
150 float tRms(tItr->getBinError() *
sqrt(tEntries));
163 qItr->setBinContent(doMask ?
kMBad :
kBad);
170 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
179 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)
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 getBinContent(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
static const int LASER_TIMING_RMS_ERROR
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_
void setParams(edm::ParameterSet const &) override
std::vector< float > expectedPNAmplitude_
float toleranceAmplitudeLo_
StatusManager const * statusManager_
void setBinContent(EcalDQMSetupObjects const edso, DetId const &_id, double _content) override
float tolerancePNRMSRatio_
Abs< T >::type abs(const T &t)
void producePlots(ProcessType) override
double getBinError(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
std::vector< float > expectedAmplitude_
EcalDQMSetupObjects const getEcalDQMSetupObjects()
double getBinEntries(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
static const int LASER_TIMING_MEAN_ERROR
EcalElectronicsMapping const * GetElectronicsMap()
std::vector< float > expectedTiming_
float toleranceAmpRMSRatio_
bool maskMatches(DetId const &_id, uint32_t _mask, StatusManager const *_statusManager, EcalTrigTowerConstituentsMap const *trigTowerMap) const override
static const int LASER_RMS_ERROR
std::map< std::string, std::string > PathReplacements
const_iterator end(EcalElectronicsMapping const *electronicsMap) const override
unsigned getIndex(PathReplacements const &) const