40 histfile_ =
new TFile(
"histos.root",
"UPDATE");
41 histEndc =
new TH1I(
"AdcE",
"Adc-s for Endcap", 100, 0., 5000.);
42 histBar =
new TH1I(
"AdcB",
"Adc-s for Barrel", 100, 0., 5000.);
43 ecal_parts_.push_back(
"Barrel");
44 ecal_parts_.push_back(
"Endcap");
81 if (!iEvent.
getByLabel(producer_, ebLabel_, ebDigis)) {
84 <<
" Couldnt find Barrel dataframes with Producer:" << producer_
85 <<
" and label: " << ebLabel_;
88 if (!iEvent.
getByLabel(producer_, eeLabel_, eeDigis)) {
91 <<
" Couldnt find Endcap dataframes with Producer:" << producer_
92 <<
" and label: " << eeLabel_;
97 for (
unsigned int i = 0;
i < ebDigis->
size(); ++
i) {
99 int nrSamples = ebdf.
size();
101 for (
int is = 0; is < nrSamples; ++is) {
104 histBar->Fill(sam.
adc());
111 for (
unsigned int i = 0;
i < eeDigis->
size(); ++
i) {
113 int nrSamples = eedf.
size();
114 for (
int is = 0; is < nrSamples; ++is) {
116 histEndc->Fill(sam.
adc());
T getParameter(std::string const &) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T const * product() const
int adc() const
get the ADC sample (12 bits)