36 tree =
new TTree(
"rphit",
"Collection of EICG4 RP G4Hits");
38 tree->Branch(
"Nhit", &
Nhit,
"Nhit/I");
40 tree->Branch(
"layerID", &
layerID);
41 tree->Branch(
"xID", &
xID);
42 tree->Branch(
"yID", &
yID);
43 tree->Branch(
"x0", &
x0);
44 tree->Branch(
"y0", &
y0);
45 tree->Branch(
"z0", &
z0);
46 tree->Branch(
"x1", &
x1);
47 tree->Branch(
"y1", &
y1);
48 tree->Branch(
"z1", &
z1);
49 tree->Branch(
"time0", &
time0);
50 tree->Branch(
"time1", &
time1);
51 tree->Branch(
"edep", &
edep);
58 std::ostringstream nodename;
59 std::set<std::string>::const_iterator iter;
63 nodename <<
"G4HIT_" << *iter;
75 if (hit_iter->second->get_hit_type() < 0)
continue;
77 layerType.push_back(hit_iter->second->get_hit_type());
78 layerID.push_back(hit_iter->second->get_layer());
79 xID.push_back(hit_iter->second->get_index_i());
80 yID.push_back(hit_iter->second->get_index_j());
81 x0.push_back(hit_iter->second->get_x(0));
82 y0.push_back(hit_iter->second->get_y(0));
83 z0.push_back(hit_iter->second->get_z(0));
84 x1.push_back(hit_iter->second->get_x(1));
85 y1.push_back(hit_iter->second->get_y(1));
86 z1.push_back(hit_iter->second->get_z(1));
87 time0.push_back(hit_iter->second->get_t(0));
88 time1.push_back(hit_iter->second->get_t(1));
89 edep.push_back(hit_iter->second->get_edep());