30 for (
int i=0;
i<4;
i++)
32 sprintf(histoName,
"h_numberOfFiredHits_%d",
i);
33 sprintf(histoTitle,
"NumberOfFiredHits Plane %d",
i);
37 for (
int i=0;
i<4;
i++)
39 sprintf(histoName,
"h_firedHits_%d",
i);
40 sprintf(histoTitle,
"firedHits Plane %d",
i);
52 for (
int i=0;
i<4;
i++)
55 for (
int i=0;
i<4;
i++)
68 if (!ecalRawHodoscope.
isValid()) {
71 hodoscopeRawInfo = ecalRawHodoscope.
product();
75 for (
int i=0;
i<4;
i++)
77 std::ostringstream
str;
79 std::vector<int> firedHits;
81 for (
int j=0;j<64;j++)
82 if ((*hodoscopeRawInfo)[
i][j])
85 firedHits.push_back(j);
88 LogDebug(
"EcalTBHodoscope") <<
"Looking plane " <<
i <<
" number of hits " << (*hodoscopeRawInfo)[
i].numberOfFiredHits() << str.str();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string rawInfoCollection_
EcalTBHodoscopeRawInfoDumper(const edm::ParameterSet &ps)
std::string rawInfoProducer_
TH1F * h_numberOfFiredHits_[4]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~EcalTBHodoscopeRawInfoDumper() override
T const * product() const