50 : fpUserTrackingAction(0), fpTrajectory(0),
51 StoreTrajectory(0),
verboseLevel(0), EventIsAborted(false)
62 delete fpSteppingManager;
63 if (fpUserTrackingAction)
delete fpUserTrackingAction;
73 fpTrack = apValueG4Track;
74 EventIsAborted =
false;
93 if( fpUserTrackingAction != 0 ) {
96#ifdef G4_STORE_TRAJECTORY
98 if(StoreTrajectory&&(!fpTrajectory)) {
100 switch (StoreTrajectory) {
102 case 1: fpTrajectory =
new G4Trajectory(fpTrack);
break;
126#ifdef G4_STORE_TRAJECTORY
127 if(StoreTrajectory) fpTrajectory->
128 AppendStep(fpSteppingManager->
GetStep());
138 if( fpUserTrackingAction != 0 ) {
144 if(StoreTrajectory&&verboseLevel>10) fpTrajectory->
ShowTrajectory();
146 if( (!StoreTrajectory)&&fpTrajectory ) {
154#ifndef G4_STORE_TRAJECTORY
157 "Invoked without G4_STORE_TRAJECTORY option set!");
159 fpTrajectory = aTrajectory;
167 EventIsAborted =
true;
171void G4TrackingManager::TrackBanner()
174 G4cout <<
"*******************************************************"
175 <<
"**************************************************"
177 G4cout <<
"* G4Track Information: "
184 G4cout <<
"*******************************************************"
185 <<
"**************************************************"
@ fKillTrackAndSecondaries
G4DLLIMPORT std::ostream G4cout
G4ProcessManager * GetProcessManager() const
const G4String & GetParticleName() const
void StartTracking(G4Track *aTrack=0)
void SetInitialStep(G4Track *valueTrack)
G4TrackStatus GetTrackStatus() const
void SetTrackStatus(const G4TrackStatus aTrackStatus)
void SetStep(const G4Step *aValue)
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
void IncrementCurrentStepNumber()
G4TrackVector * GimmeSecondaries() const
void ProcessOneTrack(G4Track *apValueG4Track)
void SetTrajectory(G4VTrajectory *aTrajectory)
virtual void PostUserTrackingAction(const G4Track *)
virtual void PreUserTrackingAction(const G4Track *)
virtual void ShowTrajectory(std::ostream &os=G4cout) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)