Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UserTrackingAction Class Reference

#include <G4UserTrackingAction.hh>

Inheritance diagram for G4UserTrackingAction:
Collaboration diagram for G4UserTrackingAction:

Public Member Functions

 G4UserTrackingAction ()
 
virtual ~G4UserTrackingAction ()
 
virtual 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 ( )

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 }
G4TrackingManager * fpTrackingManager
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
static G4ParticleTable * GetParticleTable()

Here is the call graph for this function:

G4UserTrackingAction::~G4UserTrackingAction ( )
virtual

Definition at line 64 of file G4UserTrackingAction.cc.

66 {;}

Member Function Documentation

virtual void G4UserTrackingAction::SetTrackingManagerPointer ( G4TrackingManager pValue)
virtual

Reimplemented in G4MultiTrackingAction.

Here is the caller graph for this function:

Member Data Documentation

G4TrackingManager* G4UserTrackingAction::fpTrackingManager
protected

Definition at line 76 of file G4UserTrackingAction.hh.


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