19 minChannelEntries_(0),
35 std::vector<int>
MGPAGains(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGains"));
36 std::vector<int>
MGPAGainsPN(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGainsPN"));
42 for (
unsigned iG(0); iG != nG; ++iG) {
46 repl[
"gain"] = std::to_string(
gain);
52 MESetMulti const& pnPedestal(static_cast<MESetMulti const&>(
sources_.at(
"PNPedestal")));
54 for (
unsigned iG(0); iG != nGPN; ++iG) {
58 repl[
"pngain"] = std::to_string(
gain);
65 std::vector<double> inToleranceRMSEB(
_params.getUntrackedParameter<std::vector<double> >(
"toleranceRMSEB"));
66 std::vector<double> inToleranceRMSEE(
_params.getUntrackedParameter<std::vector<double> >(
"toleranceRMSEE"));
68 for (std::map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
69 unsigned iME(gainItr->second);
71 switch (gainItr->first) {
89 std::vector<double> inTolerancePNRMS(
_params.getUntrackedParameter<std::vector<double> >(
"tolerancePNRMS"));
91 for (std::map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr) {
92 unsigned iME(gainItr->second);
94 switch (gainItr->first) {
114 MESetMulti& meQuality(static_cast<MESetMulti&>(
MEs_.at(
"Quality")));
115 MESetMulti& meQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"QualitySummary")));
118 MESetMulti& mePNQualitySummary(static_cast<MESetMulti&>(
MEs_.at(
"PNQualitySummary")));
122 MESetMulti const& sPNPedestal(static_cast<MESetMulti const&>(
sources_.at(
"PNPedestal")));
124 for (map<int, unsigned>::iterator gainItr(
gainToME_.begin()); gainItr !=
gainToME_.end(); ++gainItr) {
125 meQuality.
use(gainItr->second);
126 meQualitySummary.
use(gainItr->second);
127 meMean.
use(gainItr->second);
128 meRMS.
use(gainItr->second);
130 sPedestal.
use(gainItr->second);
133 switch (gainItr->first) {
159 float entries(pItr->getBinEntries());
166 float mean(pItr->getBinContent());
167 float rms(pItr->getBinError() *
sqrt(entries));
172 float toleranceRMS_ =
176 qItr->setBinContent(doMask ?
kMBad :
kBad);
184 for (map<int, unsigned>::iterator gainItr(
pnGainToME_.begin()); gainItr !=
pnGainToME_.end(); ++gainItr) {
185 mePNQualitySummary.
use(gainItr->second);
186 mePNRMS.
use(gainItr->second);
188 sPNPedestal.
use(gainItr->second);
191 switch (gainItr->first) {
204 for (
unsigned iDCC(0); iDCC <
nDCC; ++iDCC) {
208 for (
unsigned iPN(0); iPN < 10; ++iPN) {