22 , m_HistoManager(nullptr)
25 , m_Filename(filename)
38 m_Ntup =
new TNtuple(
"hitntup",
"G4Hits",
"absorber:detid:x0:y0:z0:x1:y1:z1:edep");
40 TH1 *
h1 =
new TH1F(
"edep1GeV",
"edep 0-1GeV", 1000, 0, 1);
42 h1 =
new TH1F(
"edep100GeV",
"edep 0-100GeV", 1000, 0, 100);
49 ostringstream nodename;
50 set<string>::const_iterator iter;
51 vector<TH1 *>::const_iterator eiter;
56 nodename <<
"G4HIT_" << *iter;
65 esum += hit_iter->second->get_edep();
67 (
int) hit_iter->second->get_layer(),
68 hit_iter->second->get_x(0),
69 hit_iter->second->get_y(0),
70 hit_iter->second->get_z(0),
71 hit_iter->second->get_x(1),
72 hit_iter->second->get_y(1),
73 hit_iter->second->get_z(1),
74 hit_iter->second->get_edep());