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

#include <G4UserSteppingAction.hh>

+ Inheritance diagram for G4UserSteppingAction:

Public Member Functions

 G4UserSteppingAction ()
 
virtual ~G4UserSteppingAction ()
 
void SetSteppingManagerPointer (G4SteppingManager *pValue)
 
virtual void UserSteppingAction (const G4Step *)
 

Protected Attributes

G4SteppingManagerfpSteppingManager
 

Detailed Description

Definition at line 51 of file G4UserSteppingAction.hh.

Constructor & Destructor Documentation

◆ G4UserSteppingAction()

G4UserSteppingAction::G4UserSteppingAction ( )

Definition at line 49 of file G4UserSteppingAction.cc.

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

◆ ~G4UserSteppingAction()

G4UserSteppingAction::~G4UserSteppingAction ( )
virtual

Definition at line 68 of file G4UserSteppingAction.cc.

70{;}

Member Function Documentation

◆ SetSteppingManagerPointer()

void G4UserSteppingAction::SetSteppingManagerPointer ( G4SteppingManager pValue)

Definition at line 73 of file G4UserSteppingAction.cc.

76{
77 fpSteppingManager = pValue;
78}

Referenced by G4TrackingManager::SetUserAction().

◆ UserSteppingAction()

virtual void G4UserSteppingAction::UserSteppingAction ( const G4Step )
inlinevirtual

Member Data Documentation

◆ fpSteppingManager

G4SteppingManager* G4UserSteppingAction::fpSteppingManager
protected

Definition at line 72 of file G4UserSteppingAction.hh.

Referenced by SetSteppingManagerPointer().


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