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)
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(
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);
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) {