40 ntup =
new TNtuple(
"zdchit",
"ZDCs",
"detid:layer:xid:yid:x0:y0:z0:x1:y1:z1:t0:t1:edep");
47 ostringstream nodename;
48 set<string>::const_iterator iter;
53 nodename <<
"G4HIT_" << *iter;
62 if(hit_iter->second->get_hit_type()<0)
continue;
64 esum += hit_iter->second->get_edep();
65 ntup->Fill(hit_iter->second->get_hit_type(),
66 hit_iter->second->get_layer(),
67 hit_iter->second->get_index_i(),
68 hit_iter->second->get_index_j(),
69 hit_iter->second->get_x(0),
70 hit_iter->second->get_y(0),
71 hit_iter->second->get_z(0),
72 hit_iter->second->get_x(1),
73 hit_iter->second->get_y(1),
74 hit_iter->second->get_z(1),
75 hit_iter->second->get_t(0),
76 hit_iter->second->get_t(1),
77 hit_iter->second->get_edep());