39 if(
_flags &
TRUTH)
_truth =
new TNtuple(
"truth",
"truth",
"event:Energy:Rapidity:Pt:Phi:PID");
41 if(
_flags &
SF )
_sf =
new TNtuple(
"sf",
"sf",
"event:sfhcalin:sfhcalout:sfcemc");
70 TH1F *
h = (TH1F*) hm->
getHisto(
"zvertex");
71 if(h) h->Fill( point->
get_z() );
73 if(h) h->Fill( point->
get_x() );
75 if(h) h->Fill( point->
get_y() );
83 map<int, PHG4Particle*>::const_iterator particle_iter;
90 particle_iter != primary_range.second; ++particle_iter)
94 ntvars[1] = particle->
get_e();
95 ntvars[2] = 0.5*log((particle->
get_e()+particle->
get_pz())/
98 ntvars[4] = atan2(particle->
get_py(), particle->
get_px());
99 ntvars[5] = particle->
get_pid();
113 hit_iter != hcalout_hit_range.second; hit_iter++)
115 PHG4Hit *this_hit = hit_iter->second;
124 hit_iter != hcalout_abs_hit_range.second; hit_iter++)
126 PHG4Hit *this_hit = hit_iter->second;
135 hit_iter != hcalin_hit_range.second; hit_iter++)
137 PHG4Hit *this_hit = hit_iter->second;
146 hit_iter != hcalin_abs_hit_range.second; hit_iter++)
148 PHG4Hit *this_hit = hit_iter->second;
155 hit_iter != hcalin_spt_hit_range.second; hit_iter++)
157 PHG4Hit *this_hit = hit_iter->second;
166 hit_iter != cemc_hit_range.second; hit_iter++)
168 PHG4Hit *this_hit = hit_iter->second;
178 hit_iter != cemc_abs_hit_range.second; hit_iter++)
180 PHG4Hit *this_hit = hit_iter->second;
186 hit_iter != cemc_electronics_hit_range.second; hit_iter++)
188 PHG4Hit *this_hit = hit_iter->second;
196 ntvars[1] = ev_hcin/(e_hcin+ea_hcin);
197 ntvars[2] = ev_hcout/(e_hcout+ea_hcout);
198 ntvars[3] = ev_cemc/(e_cemc+ea_cemc);
213 hm->
registerHisto(
new TH1F(
"zvertex",
"zvertex",120,-30,30) );
224 _truth_container = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");