42 histfile_=
new TFile(
"histos.root",
"UPDATE");
43 histEndc =
new TH1I(
"AdcE",
"Adc-s for Endcap",100,0.,5000.);
44 histBar =
new TH1I(
"AdcB",
"Adc-s for Barrel",100,0.,5000.);
45 ecal_parts_.push_back(
"Barrel");
46 ecal_parts_.push_back(
"Endcap");
56 producer_= iConfig.
getParameter<std::string>(
"Producer");
88 if (!iEvent.
getByLabel(producer_,ebLabel_,ebDigis)) {
90 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Barrel dataframes with Producer:"<<producer_<<
" and label: "<<ebLabel_;
93 if (!iEvent.
getByLabel(producer_,eeLabel_,eeDigis)) {
95 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Endcap dataframes with Producer:"<<producer_<<
" and label: "<<eeLabel_;
100 for (
unsigned int i=0;
i<ebDigis->size();++
i) {
102 int nrSamples=ebdf.
size();
104 for (
int is=0;is<nrSamples;++is) {
107 histBar->Fill(sam.
adc());
114 for (
unsigned int i=0;
i<eeDigis->size();++
i) {
116 int nrSamples=eedf.
size();
117 for (
int is=0;is<nrSamples;++is) {
119 histEndc->Fill(sam.
adc());
T getParameter(std::string const &) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
int adc() const
get the ADC sample (12 bits)