Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4UserTrackingAction Class Reference

#include <G4UserTrackingAction.hh>

+ Inheritance diagram for G4UserTrackingAction:

Public Member Functions

 G4UserTrackingAction ()
 
virtual ~G4UserTrackingAction ()
 
void SetTrackingManagerPointer (G4TrackingManager *pValue)
 
virtual void PreUserTrackingAction (const G4Track *)
 
virtual void PostUserTrackingAction (const G4Track *)
 

Protected Attributes

G4TrackingManagerfpTrackingManager
 

Detailed Description

Definition at line 54 of file G4UserTrackingAction.hh.

Constructor & Destructor Documentation

◆ G4UserTrackingAction()

G4UserTrackingAction::G4UserTrackingAction ( )

Definition at line 45 of file G4UserTrackingAction.cc.

48{
49 if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
50 {
51 G4String msg;
52 msg = " You are instantiating G4UserTrackingAction BEFORE your\n";
53 msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n";
54 msg += " Such an instantiation is prohibited since Geant4 version 8.0. To fix this problem,\n";
55 msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
56 msg += "set it to G4RunManager before instantiating other user action classes\n";
57 msg += "such as G4UserTrackingAction.";
58 G4Exception("G4UserTrackingAction::G4UserTrackingAction()",
59 "Tracking0001", FatalException, msg);
60 }
61}
@ FatalException
static G4ParticleTable * GetParticleTable()
G4TrackingManager * fpTrackingManager
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

◆ ~G4UserTrackingAction()

G4UserTrackingAction::~G4UserTrackingAction ( )
virtual

Definition at line 64 of file G4UserTrackingAction.cc.

66{;}

Member Function Documentation

◆ PostUserTrackingAction()

virtual void G4UserTrackingAction::PostUserTrackingAction ( const G4Track )
inlinevirtual

Reimplemented in G4RTTrackingAction.

Definition at line 69 of file G4UserTrackingAction.hh.

69{;}

Referenced by G4TrackingManager::ProcessOneTrack().

◆ PreUserTrackingAction()

virtual void G4UserTrackingAction::PreUserTrackingAction ( const G4Track )
inlinevirtual

Reimplemented in G4RTTrackingAction.

Definition at line 68 of file G4UserTrackingAction.hh.

68{;}

Referenced by G4TrackingManager::ProcessOneTrack().

◆ SetTrackingManagerPointer()

void G4UserTrackingAction::SetTrackingManagerPointer ( G4TrackingManager pValue)

Definition at line 69 of file G4UserTrackingAction.cc.

72{
73 fpTrackingManager = pValue;
74}

Referenced by G4TrackingManager::SetUserAction().

Member Data Documentation

◆ fpTrackingManager

G4TrackingManager* G4UserTrackingAction::fpTrackingManager
protected

Definition at line 76 of file G4UserTrackingAction.hh.

Referenced by SetTrackingManagerPointer().


The documentation for this class was generated from the following files: