27 for (
int i = 0;
i < 4;
i++) {
28 sprintf(
histoName,
"h_numberOfFiredHits_%d",
i);
29 sprintf(histoTitle,
"NumberOfFiredHits Plane %d",
i);
33 for (
int i = 0;
i < 4;
i++) {
35 sprintf(histoTitle,
"firedHits Plane %d",
i);
46 for (
int i = 0;
i < 4;
i++)
49 for (
int i = 0;
i < 4;
i++)
61 if (!ecalRawHodoscope.
isValid()) {
64 hodoscopeRawInfo = ecalRawHodoscope.
product();
68 for (
int i = 0;
i < 4;
i++) {
69 std::ostringstream
str;
71 std::vector<int> firedHits;
73 for (
int j = 0;
j < 64;
j++)
74 if ((*hodoscopeRawInfo)[
i][
j]) {
76 firedHits.push_back(
j);
79 LogDebug(
"EcalTBHodoscope") <<
"Looking plane " <<
i <<
" number of hits " 80 << (*hodoscopeRawInfo)[
i].numberOfFiredHits() <<
str.str();
T getParameter(std::string const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
T const * product() const
std::string rawInfoCollection_
EcalTBHodoscopeRawInfoDumper(const edm::ParameterSet &ps)
Log< level::Error, false > LogError
std::string rawInfoProducer_
TH1F * h_numberOfFiredHits_[4]
T getUntrackedParameter(std::string const &, T const &) const
~EcalTBHodoscopeRawInfoDumper() override