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);
74 aTrack->GetDefinition()->GetPDGEncoding(),
75 aTrack->GetMomentum().mag());
89 aTrack->SetUserInformation(trkInfo);
void primary(const G4Track *aSecondary) const
void addUserInfoToPrimary(G4Track *aTrack) const
void secondary(const G4Track *aSecondary, const G4Track &mother, int) const
void addUserInfoToSecondary(G4Track *aTrack, const TrackInformation &motherInfo, int) const