18 minChannelEntries_(0),
19 expectedAmplitude_(0),
20 toleranceAmplitudeLo_(0.),
21 toleranceAmplitudeFwdLo_(0.),
22 toleranceAmplitudeHi_(0.),
23 toleranceAmpRMSRatio_(0.),
27 expectedPNAmplitude_(0),
29 tolerancePNRMSRatio_(0.),
54 for (
unsigned iWL(0); iWL != nWL; ++iWL) {
56 if (wl <= 0 || wl >= 5)
57 throw cms::Exception(
"InvalidConfiguration") <<
"Laser Wavelength";
66 std::vector<double> inExpectedAmplitude(
_params.getUntrackedParameter<std::vector<double> >(
"expectedAmplitude"));
67 std::vector<double> inExpectedTiming(
_params.getUntrackedParameter<std::vector<double> >(
"expectedTiming"));
68 std::vector<double> inExpectedPNAmplitude(
69 _params.getUntrackedParameter<std::vector<double> >(
"expectedPNAmplitude"));
71 for (std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr) {
72 unsigned iME(wlItr->second);
73 int iWL(wlItr->first - 1);
89 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"QualitySummary")));
90 MESetMulti& meAmplitudeMean(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeMean")));
91 MESetMulti& meAmplitudeRMS(static_cast<MESetMulti&>(
MEs_.
at(
"AmplitudeRMS")));
93 MESetMulti& meTimingRMSMap(static_cast<MESetMulti&>(
MEs_.
at(
"TimingRMSMap")));
95 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.
at(
"PNQualitySummary")));
100 MESet const& sCalibStatus(static_cast<MESet const&>(
sources_.
at(
"CalibStatus")));
102 for (std::map<int, unsigned>::iterator wlItr(
wlToME_.begin()); wlItr !=
wlToME_.end(); ++wlItr) {
103 meQuality.
use(wlItr->second);
104 meQualitySummary.
use(wlItr->second);
105 meAmplitudeMean.
use(wlItr->second);
106 meAmplitudeRMS.
use(wlItr->second);
107 meTimingMean.
use(wlItr->second);
108 meTimingRMSMap.
use(wlItr->second);
109 meTimingRMS.
use(wlItr->second);
110 mePNQualitySummary.
use(wlItr->second);
112 sAmplitude.
use(wlItr->second);
113 sTiming.
use(wlItr->second);
114 sPNAmplitude.
use(wlItr->second);
121 int wl(wlItr->first - 1);
131 float aEntries(aItr->getBinEntries());
138 float aMean(aItr->getBinContent());
139 float aRms(aItr->getBinError() *
sqrt(aEntries));
146 float tEntries(tItr->getBinEntries());
151 float tMean(tItr->getBinContent());
152 float tRms(tItr->getBinError() *
sqrt(tEntries));
153 float threshAmplitudeLo_;
169 qItr->setBinContent(doMask ?
kMBad :
kBad);
176 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
185 for (
unsigned iPN(0); iPN < 10; ++iPN) {
unsigned memDCCIndex(unsigned)
float toleranceAmplitudeHi_
static const int LASER_MEAN_ERROR
void towerAverage_(MESet &, MESet const &, float)
#define DEFINE_ECALDQM_WORKER(TYPE)
MESet & at(const std::string &key)
static constexpr int kGood
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
static constexpr int kMUnknown
bool isForward(DetId const &)
const_iterator beginChannel(EcalElectronicsMapping const *electronicsMap) const override
std::map< int, unsigned > wlToME_
static constexpr int kUnknown
static std::string to_string(const XMLCh *ch)
static constexpr int kMBad
void fill(EcalDQMSetupObjects const edso, DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
float toleranceAmplitudeFwdLo_
virtual double getBinContent(EcalDQMSetupObjects const, DetId const &, int=0) const
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
static constexpr int kBad
double getBinError(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
std::vector< float > expectedAmplitude_
EcalElectronicsMapping const * GetElectronicsMap()
EcalDQMSetupObjects const getEcalDQMSetupObjects()
static constexpr int nDCC
double getBinEntries(EcalDQMSetupObjects const edso, DetId const &_id, int _bin=0) const override
static const int LASER_TIMING_MEAN_ERROR
static constexpr int kMGood
std::vector< float > expectedTiming_
float toleranceAmpRMSRatio_
EcalTrigTowerConstituentsMap const * GetTrigTowerMap()
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