19 minChannelEntries_(0),
20 amplitudeThreshold_(0),
22 PNAmplitudeThreshold_(0),
28 std::vector<int>
MGPAGains(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGains"));
29 std::vector<int>
MGPAGainsPN(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGainsPN"));
35 for (
unsigned iG(0); iG != nG; ++iG) {
39 repl[
"gain"] = std::to_string(
gain);
45 MESetMulti const& pnAmplitude(static_cast<MESetMulti const&>(
sources_.at(
"PNAmplitude")));
47 for (
unsigned iG(0); iG != nGPN; ++iG) {
51 repl[
"pngain"] = std::to_string(
gain);
58 std::vector<double> inAmplitudeThreshold(
_params.getUntrackedParameter<std::vector<double> >(
"amplitudeThreshold"));
59 std::vector<double> inToleranceRMS(
_params.getUntrackedParameter<std::vector<double> >(
"toleranceRMS"));
61 for (std::map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
62 unsigned iME(gainItr->second);
64 switch (gainItr->first) {
83 std::vector<double> inPNAmplitudeThreshold(
84 _params.getUntrackedParameter<std::vector<double> >(
"PNAmplitudeThreshold"));
85 std::vector<double> inTolerancePNRMS(
_params.getUntrackedParameter<std::vector<double> >(
"tolerancePNRMS"));
87 for (std::map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr) {
88 unsigned iME(gainItr->second);
90 switch (gainItr->first) {
111 MESetMulti& meQuality(static_cast<MESetMulti&>(
MEs_.at(
"Quality")));
112 MESetMulti& meAmplitudeRMS(static_cast<MESetMulti&>(
MEs_.at(
"AmplitudeRMS")));
113 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"QualitySummary")));
114 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"PNQualitySummary")));
116 MESetMulti const& sAmplitude(static_cast<MESetMulti const&>(
sources_.at(
"Amplitude")));
117 MESetMulti const& sPNAmplitude(static_cast<MESetMulti const&>(
sources_.at(
"PNAmplitude")));
119 for (map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
120 meQuality.
use(gainItr->second);
121 meQualitySummary.
use(gainItr->second);
122 meAmplitudeRMS.
use(gainItr->second);
124 sAmplitude.
use(gainItr->second);
127 switch (gainItr->first) {
155 float entries(aItr->getBinEntries());
162 float amp(aItr->getBinContent());
163 float rms(aItr->getBinError() *
sqrt(entries));
165 rItr->setBinContent(
rms);
168 qItr->setBinContent(doMask ?
kMBad :
kBad);
176 for (map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr) {
177 mePNQualitySummary.
use(gainItr->second);
179 sPNAmplitude.
use(gainItr->second);
182 switch (gainItr->first) {
195 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
199 for (
unsigned iPN(0); iPN < 10; ++iPN) {