27 unsigned nG(MGPAGains.size());
28 for (
unsigned iG(0); iG != nG; ++iG) {
29 int gain(MGPAGains[iG]);
30 if (gain != 1 && gain != 6 && gain != 12)
32 repl[
"gain"] = std::to_string(gain);
38 MESetMulti& pnAmplitude(static_cast<MESetMulti&>(
MEs_.at(
"PNAmplitude")));
39 unsigned nGPN(MGPAGainsPN.size());
40 for (
unsigned iG(0); iG != nGPN; ++iG) {
41 int gain(MGPAGainsPN[iG]);
42 if (gain != 1 && gain != 16)
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);
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();
170 mePNAmplitude.fill(
id, amplitude);
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());
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_ECALDQM_WORKER(TYPE)
std::vector< T >::const_iterator const_iterator
EcalMGPASample sample(int i) const
void fill(DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
std::map< int, unsigned > gainToME_
std::map< int, unsigned > pnGainToME_
bool filterRunType(short const *) override
void setParams(edm::ParameterSet const &) override
void runOnDigis(DigiCollection const &)
const_iterator end() const
void runOnPnDigis(EcalPnDiodeDigiCollection const &)
void addDependencies(DependencySet &) override
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
std::map< std::string, std::string > PathReplacements
void push_back(Dependency const &_d)
unsigned dccId(DetId const &)
unsigned getIndex(PathReplacements const &) const
void runOnRawData(EcalRawDataCollection const &)
const_iterator begin() const
int adc() const
get the ADC sample (12 bits)