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");
79 if (!iEvent.
getByLabel(producer_, ebLabel_, ebDigis)) {
81 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Barrel dataframes with Producer:" << producer_
82 <<
" and label: " << ebLabel_;
85 if (!iEvent.
getByLabel(producer_, eeLabel_, eeDigis)) {
87 edm::LogWarning(
"EcalTPG") <<
" Couldnt find Endcap dataframes with Producer:" << producer_
88 <<
" and label: " << eeLabel_;
93 for (
unsigned int i = 0;
i < ebDigis->
size(); ++
i) {
95 int nrSamples = ebdf.
size();
97 for (
int is = 0; is < nrSamples; ++is) {
100 histBar->Fill(sam.
adc());
107 for (
unsigned int i = 0;
i < eeDigis->
size(); ++
i) {
109 int nrSamples = eedf.
size();
110 for (
int is = 0; is < nrSamples; ++is) {
112 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)