31 if (
verbose_ ) dbe_->showDirStructure();
36 for (
int i = 0;
i < 3 ;
i++ ) {
43 dbe_->setCurrentFolder(
"EcalDigisV/EcalDigiTask");
45 sprintf (histo,
"EcalDigiTask Preshower digis multiplicity" ) ;
48 for (
int i = 0;
i < 3 ;
i++ ) {
50 sprintf (histo,
"EcalDigiTask Preshower ADC pulse %02d",
i+1) ;
51 meESDigiADC_[
i] = dbe_->book1D(histo, histo, 4096, -0.5, 4095.5) ;
67 if( !EcalDigiES.
isValid() )
return;
75 std::vector<double> esADCCounts ;
80 for (
unsigned int digis=0; digis<EcalDigiES->size(); ++digis) {
83 int nrSamples=esdf.
size();
98 LogDebug(
"DigiInfo") <<
"Preshower Digi for ESDetId: z side " << esid.
zside() <<
" plane " << esid.
plane() << esid.
six() <<
',' << esid.
siy() <<
':' << esid.
strip();
99 for (
int i = 0;
i < 3 ;
i++ ) {
100 LogDebug(
"DigiInfo") <<
"sample " <<
i <<
" ADC = " << esADCCounts[
i];
104 for (
int i = 0 ;
i < 3 ;
i++ ) {
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meESDigiADC_[3]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const ESDetId & id() const
MonitorElement * meESDigiMultiplicity_
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
static const int MAXSAMPLES
edm::EDGetTokenT< ESDigiCollection > ESdigiCollectionToken_
T const * product() const
EcalPreshowerDigisValidation(const edm::ParameterSet &ps)
Constructor.
int adc() const
get the ADC sample (singed 16 bits)