35 g4tree =
new TTree(
"mG4EvtTree",
"g4tree");
36 g4tree->SetAutoSave(1000000);
38 std::cout <<
"Initialize Geant 4 Tree ... << " << std::endl;
86 PHG4TruthInfoContainer *truthInfoList = findNode::getClass<PHG4TruthInfoContainer>(topNode,
"G4TruthInfo");
89 double px = primRange.first->second->get_px();
90 double py = primRange.first->second->get_py();
91 double pz = primRange.first->second->get_pz();
92 double p = sqrt(px * px + py * py + pz * pz);
93 double pt = sqrt(px * px + py * py);
94 double phi = atan2(py, px);
95 double theta = atan2(pt, pz);
96 double pid = primRange.first->second->get_pid();
114 std::ostringstream nodename;
115 std::set<std::string>::const_iterator iter;
121 nodename <<
"G4HIT_" << *iter;
124 if (!strcmp(
"G4HIT_DIRC", nodename.str().c_str()))
163 PrtHit *dirc_hit =
dynamic_cast<PrtHit *
>(hit_iter_0->second);
184 for (
int i = 0; i < 3; i++)