Ejemplo n.º 1
0
PHG4Particle* SvtxTruthEval::get_particle(PHG4Hit* g4hit) {

  PHG4TruthInfoContainer* truthinfo = findNode::getClass<PHG4TruthInfoContainer>(_topNode,"G4TruthInfo");
  if (!truthinfo) {
    cerr << PHWHERE << " ERROR: Can't find G4TruthInfo" << endl;
    exit(-1);
  }

  PHG4Particle* particle = truthinfo->GetHit( g4hit->get_trkid() );
  return particle;
}