3 #include <calobase/TowerInfoContainerv2.h>
4 #include <calobase/TowerInfov2.h>
15 #include <Event/Event.h>
16 #include <Event/packet.h>
33 std::cout << std::endl <<
"HCalCalibTree::Init" << std::endl;
37 for (
int ieta = 0; ieta <
n_etabin; ++ieta) {
38 for (
int iphi = 0; iphi <
n_phibin; ++iphi) {
40 h_channel_hist[ieta][iphi] =
new TH1F(channel_histname.c_str(),
"", 200, 0, 10000);
43 h_waveformchi2 =
new TH2F(
"h_waveformchi2",
"", 1000, 0, 10000, 1000, 0, 100000);
47 h_check =
new TH1F(
"h_check",
"", 1000, 0, 0.01);
50 if (
prefix ==
"TOWERINFO_SIM_") {
59 std::cout <<
"Offline cut applied: " << std::endl;
65 se -> registerHistoManager(
hm);
73 if (
event % 100 == 0) std::cout <<
"HCalCalibTree::process_event " <<
event << std::endl;
82 ostringstream nodenamev2;
86 TowerInfoContainer *towers = findNode::getClass<TowerInfoContainer>(topNode, nodenamev2.str());
88 std::cout << std::endl <<
"Didn't find node " << nodenamev2.str() << std::endl;
101 m_chi2[ieta][iphi] = chi2;
108 for (
int ieta = 0; ieta <
n_etabin; ++ieta) {
109 for (
int iphi = 0; iphi <
n_phibin; ++iphi) {
113 if (up > 63) up -= 64;
114 if (down < 0) down += 64;
130 std::cout <<
"HCalCalibTree::End" << std::endl;
131 std::cout <<
"Number of events: " <<
event << std::endl;
132 std::cout <<
"Number of good events: " <<
goodevent << std::endl;
136 for (
int ieta = 0; ieta <
n_etabin; ++ieta) {
137 for (
int iphi = 0; iphi <
n_phibin; ++iphi) {