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);
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) {
120 for (
int iSample(0); iSample < 10; iSample++)
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();
168 double amplitude(max - pedestal);
189 static_cast<MESetMulti&
>(meAmplitude).use(iME);
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_ECALDQM_WORKER(TYPE)
uint16_t *__restrict__ id
MESet & at(const std::string &key)
std::vector< T >::const_iterator const_iterator
EcalMGPASample sample(int i) const
std::map< int, unsigned > gainToME_
void fill(EcalDQMSetupObjects const edso, DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
std::map< int, unsigned > pnGainToME_
bool filterRunType(short const *) override
void setParams(edm::ParameterSet const &) override
void runOnDigis(DigiCollection const &)
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
const_iterator end() const
EcalDQMSetupObjects const getEcalDQMSetupObjects()
void runOnPnDigis(EcalPnDiodeDigiCollection const &)
EcalElectronicsMapping const * GetElectronicsMap()
void addDependencies(DependencySet &) override
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
std::map< std::string, std::string > PathReplacements
void push_back(Dependency const &_d)
unsigned getIndex(PathReplacements const &) const
void runOnRawData(EcalRawDataCollection const &)
const_iterator begin() const
int adc() const
get the ADC sample (12 bits)