21 std::vector<int>
MGPAGains(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGains"));
22 std::vector<int>
MGPAGainsPN(
_params.getUntrackedParameter<std::vector<int> >(
"MGPAGainsPN"));
28 for (
unsigned iG(0); iG != nG; ++iG) {
32 repl[
"gain"] = std::to_string(
gain);
38 MESetMulti& pnAmplitude(static_cast<MESetMulti&>(
MEs_.at(
"PNAmplitude")));
40 for (
unsigned iG(0); iG != nGPN; ++iG) {
44 repl[
"pngain"] = std::to_string(
gain);
57 for (
int iFED(0); iFED <
nDCC; iFED++) {
70 unsigned iDCC(rItr->id() - 1);
76 switch (rItr->getMgpaGain()) {
95 template <
typename DigiCollection>
102 for (
typename DigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr) {
105 meOccupancy.fill(
id);
107 int iDCC(
dccId(
id) - 1);
117 static_cast<MESetMulti&>(meShape).use(iME);
120 for (
int iSample(0); iSample < 10; iSample++)
121 meShape.fill(
id, iSample + 0.5,
float(dataFrame.
sample(iSample).
adc()));
126 MESet& mePNAmplitude(
MEs_.at(
"PNAmplitude"));
133 int iDCC(
dccId(
id) - 1);
139 switch (digiItr->sample(0).gainId()) {
155 static_cast<MESetMulti&>(mePNAmplitude).use(iME);
159 for (
int iSample(0); iSample < 4; iSample++)
160 pedestal += digiItr->sample(iSample).adc();
164 for (
int iSample(0); iSample < 50; iSample++)
165 if (digiItr->sample(iSample).adc() >
max)
166 max = digiItr->sample(iSample).adc();
175 MESet& meAmplitude(
MEs_.at(
"Amplitude"));
182 int iDCC(
dccId(
id) - 1);
189 static_cast<MESetMulti&>(meAmplitude).use(iME);
192 meAmplitude.fill(
id, uhitItr->amplitude());