19 #include <boost/foreach.hpp>
44 ostringstream hname, htit;
48 ntupe =
new TNtuple(
"hijingcnt",
"NHits",
"cemc:cemc_abs:ihcal:ihcal_abs:ohcal:ohcal_abs:prim");
56 map<int, PHG4Particle*>::const_iterator particle_iter;
57 PHG4TruthInfoContainer *_truth_container = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
61 float ntvars[7] = {0};
63 particle_iter != primary_range.second; ++particle_iter)
68 string nodename[6] = {
"G4HIT_CEMC",
"G4HIT_ABSORBER_CEMC",
69 "G4HIT_HCALIN",
"G4HIT_ABSORBER_HCALIN",
70 "G4HIT_HCALOUT",
"G4HIT_ABSORBER_HCALOUT"};
72 for (
int i=0;
i<6;
i++)
74 hits = findNode::getClass<PHG4HitContainer>(topNode,nodename[
i]);
80 ntvars[
i] = hits->
size();