15 #include <boost/foreach.hpp>
40 ostringstream hname, htit;
44 ntupe =
new TNtuple(
"ed",
"G4Hits",
"ES:EA:HIS:HIA:HOS:HOA:BH:MAG");
46 TH1 *
h1 =
new TH1F(
"edep1GeV",
"edep 0-1GeV",1000,0,1);
48 h1 =
new TH1F(
"edep100GeV",
"edep 0-100GeV",1000,0,100);
56 ostringstream nodename;
57 set<string>::const_iterator iter;
58 vector<TH1 *>::const_iterator eiter;
62 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_CEMC");
72 ntvar[0] += hit_iter->second->get_edep();
76 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_ABSORBER_CEMC");
86 ntvar[1] += hit_iter->second->get_edep();
90 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_HCALIN");
100 ntvar[2] += hit_iter->second->get_edep();
104 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_ABSORBER_HCALIN");
114 ntvar[3] += hit_iter->second->get_edep();
118 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_HCALOUT");
128 ntvar[4] += hit_iter->second->get_edep();
132 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_ABSORBER_HCALOUT");
142 ntvar[5] += hit_iter->second->get_edep();
146 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_BH_1");
156 ntvar[6] += hit_iter->second->get_edep();
160 hits = findNode::getClass<PHG4HitContainer>(topNode,
"G4HIT_MAGNET");
170 ntvar[7] += hit_iter->second->get_edep();