Go to the documentation of this file.
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());
87 aTrack->SetUserInformation(trkInfo);
void addUserInfoToPrimary(G4Track *aTrack) const
void addUserInfoToSecondary(G4Track *aTrack, const TrackInformation &motherInfo, int) const
void secondary(const G4Track *aSecondary, const G4Track &mother, int) const
void primary(const G4Track *aSecondary) const