19 secondary(const_cast<G4Track *>(aSecondary), mother, flag);
23 if (aSecondary->GetParentID() != mother.GetTrackID())
24 throw SimG4Exception(
"NewTrackAction: secondary parent ID does not match mother id");
29 LogDebug(
"SimTrackManager") <<
"NewTrackAction: Add track " << aSecondary->GetTrackID() <<
" from mother " 30 << mother.GetTrackID();
41 aTrack->SetUserInformation(trkInfo);
70 aTrack->GetDefinition()->GetPDGEncoding(),
71 aTrack->GetMomentum().mag());
85 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