15 , _parent_particle_id(0)
16 , _parent_shower_id(0)
28 fill(std::begin(
_pos), std::end(
_pos), NAN);
34 os <<
"---PHG4Showerv1-------------------------------" << endl;
35 os <<
"id: " <<
get_id() << endl;
38 os <<
"x: " <<
get_x() << endl;
39 os <<
"y: " <<
get_y() << endl;
40 os <<
"z: " <<
get_z() << endl;
55 os <<
"VOLUME ID : edep eion light_yield" << endl;
56 for (std::map<int, float>::const_iterator iter =
_edep.begin();
57 iter !=
_edep.end(); ++iter)
59 int volid = iter->first;
64 os <<
"G4Particle IDs" << endl;
72 os <<
"G4Hit IDs" << endl;
73 for (std::map<
int, std::set<PHG4HitDefs::keytype> >::const_iterator iter =
77 for (std::set<PHG4HitDefs::keytype>::const_iterator jter =
79 jter != iter->second.end(); ++jter)
86 os <<
"-----------------------------------------------" << endl;
95 for (
int i = 0; i < 3; ++i)
100 for (
int j = 0; j < 3; ++j)
102 for (
int i = j; i < 3; ++i)
126 return i + 1 + (j + 1) * (j) / 2 - 1;
131 std::map<int, unsigned int>::const_iterator citer =
133 if (citer ==
_nhits.end())
135 return citer->second;
140 std::map<int, float>::const_iterator citer =
142 if (citer ==
_edep.end())
144 return citer->second;
150 for (
const auto &iter :
_edep)
159 std::map<int, float>::const_iterator citer =
161 if (citer ==
_eion.end())
163 return citer->second;
169 for (
const auto &iter :
_eion)
178 std::map<int, float>::const_iterator citer =
182 return citer->second;
187 std::map<int, float>::const_iterator citer =
191 return citer->second;