20 if (aSecondary->GetParentID() != mother.GetTrackID()) {
21 G4Exception(
"SimG4Core/Notification",
24 "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);
46 LogDebug(
"SimG4CoreApplication") <<
"NewTrackAction called for " << aTrack->GetTrackID() <<
" mother " 66 aTrack->GetDefinition()->GetPDGEncoding(),
67 aTrack->GetMomentum().mag());
81 aTrack->SetUserInformation(trkInfo);
void addUserInfoToSecondary(G4Track *aTrack, const TrackInformation &motherInfo, int) const
void addUserInfoToPrimary(G4Track *aTrack) const
void secondary(const G4Track *aSecondary, const G4Track &mother, int) const
void primary(const G4Track *aSecondary) const