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++) {
34 sprintf(histoName,
"h_firedHits_%d",
i);
35 sprintf(histoTitle,
"firedHits Plane %d",
i);
36 h_firedHits_[
i] =
new TH1F(histoName, histoTitle, 64, -0.5, 63.5);
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 getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string rawInfoCollection_
EcalTBHodoscopeRawInfoDumper(const edm::ParameterSet &ps)
Log< level::Error, false > LogError
std::string rawInfoProducer_
TH1F * h_numberOfFiredHits_[4]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~EcalTBHodoscopeRawInfoDumper() override
T const * product() const
T getParameter(std::string const &) const