15 primary(const_cast<G4Track *>(aTrack));
23 secondary(const_cast<G4Track *>(aSecondary),mother,flag);
27 if (aSecondary->GetParentID() != mother.GetTrackID())
28 throw SimG4Exception(
"NewTrackAction: secondary parent ID does not match mother id");
33 LogDebug(
"SimTrackManager") <<
"NewTrackAction: Add track " << aSecondary->GetTrackID() <<
" from mother " << mother.GetTrackID();
44 aTrack->SetUserInformation(trkInfo);
72 aTrack->GetDefinition()->GetPDGEncoding(),
73 aTrack->GetMomentum().mag());
82 aTrack->SetUserInformation(trkInfo);
void primary(const G4Track *aSecondary) const
void addUserInfoToPrimary(G4Track *aTrack) const
const reco::GenParticle * mother(const reco::GenParticle &p, unsigned int imoth=0)
void secondary(const G4Track *aSecondary, const G4Track &mother, int) const
void addUserInfoToSecondary(G4Track *aTrack, const TrackInformation &motherInfo, int) const