11 ESdigiCollectionToken_( consumes<
ESDigiCollection>( ps.getParameter<
edm::InputTag>(
"ESdigiCollection" ) ) )
19 for (
int i = 0;
i < 3 ;
i++ ) {
31 sprintf (histo,
"EcalDigiTask Preshower digis multiplicity" ) ;
34 for (
int i = 0;
i < 3 ;
i++ ) {
36 sprintf (histo,
"EcalDigiTask Preshower ADC pulse %02d",
i+1) ;
50 if( !EcalDigiES.
isValid() )
return;
58 std::vector<double> esADCCounts ;
63 for (
unsigned int digis=0; digis<EcalDigiES->
size(); ++digis) {
66 int nrSamples=esdf.
size();
81 LogDebug(
"DigiInfo") <<
"Preshower Digi for ESDetId: z side " << esid.
zside() <<
" plane " << esid.
plane() << esid.
six() <<
',' << esid.
siy() <<
':' << esid.
strip();
82 for (
int i = 0;
i < 3 ;
i++ ) {
83 LogDebug(
"DigiInfo") <<
"sample " <<
i <<
" ADC = " << esADCCounts[
i];
87 for (
int i = 0 ;
i < 3 ;
i++ ) {
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meESDigiADC_[3]
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const ESDetId & id() const
MonitorElement * meESDigiMultiplicity_
void setCurrentFolder(std::string const &fullpath)
static const int MAXSAMPLES
MonitorElement * book1D(Args &&...args)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
void reserve(size_t isize)
edm::EDGetTokenT< ESDigiCollection > ESdigiCollectionToken_
T const * product() const
EcalPreshowerDigisValidation(const edm::ParameterSet &ps)
Constructor.
int adc() const
get the ADC sample (singed 16 bits)