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) {
40 for (
unsigned iG(0); iG != nGPN; ++iG) {
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();
189 static_cast<MESetMulti&
>(meAmplitude).use(iME);
#define DEFINE_ECALDQM_WORKER(TYPE)
MESet & at(const std::string &key)
std::vector< T >::const_iterator const_iterator
std::string to_string(const V &value)
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 &)
EcalMGPASample sample(int i) const
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
const_iterator begin() const
const_iterator end() const
EcalElectronicsMapping const * GetElectronicsMap()
EcalDQMSetupObjects const getEcalDQMSetupObjects()
unsigned getIndex(PathReplacements const &) const
void runOnPnDigis(EcalPnDiodeDigiCollection const &)
int adc() const
get the ADC sample (12 bits)
void addDependencies(DependencySet &) override
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
std::map< std::string, std::string > PathReplacements
void push_back(Dependency const &_d)
void runOnRawData(EcalRawDataCollection const &)