41 histfile_=
new TFile(
"histos.root",
"UPDATE");
42 histEndc =
new TH1I(
"AdcE",
"Adc-s for Endcap",100,0.,5000.);
43 histBar =
new TH1I(
"AdcB",
"Adc-s for Barrel",100,0.,5000.);
44 ecal_parts_.push_back(
"Barrel");
45 ecal_parts_.push_back(
"Endcap");
87 if (!iEvent.
getByLabel(producer_,ebLabel_,ebDigis)) {
89 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Barrel dataframes with Producer:"<<producer_<<
" and label: "<<ebLabel_;
92 if (!iEvent.
getByLabel(producer_,eeLabel_,eeDigis)) {
94 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Endcap dataframes with Producer:"<<producer_<<
" and label: "<<eeLabel_;
99 for (
unsigned int i=0;
i<ebDigis->size();++
i) {
101 int nrSamples=ebdf.
size();
103 for (
int is=0;is<nrSamples;++is) {
106 histBar->Fill(sam.
adc());
113 for (
unsigned int i=0;
i<eeDigis->size();++
i) {
115 int nrSamples=eedf.
size();
116 for (
int is=0;is<nrSamples;++is) {
118 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)