39 histfile_ =
new TFile(
"histos.root",
"UPDATE");
40 histEndc =
new TH1I(
"AdcE",
"Adc-s for Endcap", 100, 0., 5000.);
41 histBar =
new TH1I(
"AdcB",
"Adc-s for Barrel", 100, 0., 5000.);
42 ecal_parts_.push_back(
"Barrel");
43 ecal_parts_.push_back(
"Endcap");
78 if (!iEvent.
getByLabel(producer_, ebLabel_, ebDigis)) {
80 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Barrel dataframes with Producer:" << producer_
81 <<
" and label: " << ebLabel_;
86 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Endcap dataframes with Producer:" << producer_
87 <<
" and label: " << eeLabel_;
92 for (
unsigned int i = 0;
i < ebDigis->size(); ++
i) {
94 int nrSamples = ebdf.
size();
96 for (
int is = 0; is < nrSamples; ++is) {
99 histBar->Fill(sam.
adc());
106 for (
unsigned int i = 0;
i <
eeDigis->size(); ++
i) {
108 int nrSamples = eedf.
size();
109 for (
int is = 0; is < nrSamples; ++is) {
111 histEndc->Fill(sam.
adc());
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
T getParameter(std::string const &) const
Log< level::Warning, false > LogWarning
int adc() const
get the ADC sample (12 bits)