Geant4 10.7.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 ()
 
virtual void SetSteppingManagerPointer (G4SteppingManager *pValue)
 
virtual void UserSteppingAction (const G4Step *)
 

Protected Attributes

G4SteppingManagerfpSteppingManager = nullptr
 

Detailed Description

Definition at line 44 of file G4UserSteppingAction.hh.

Constructor & Destructor Documentation

◆ G4UserSteppingAction()

G4UserSteppingAction::G4UserSteppingAction ( )

Definition at line 39 of file G4UserSteppingAction.cc.

41{
42 if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
43 {
44 G4String msg;
45 msg = " You are instantiating G4UserSteppingAction BEFORE your\n";
46 msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n";
47 msg += " Such an instantiation is prohibited. To fix this problem,\n";
48 msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
49 msg += "set it to G4RunManager before instantiating other user action classes\n";
50 msg += "such as G4UserSteppingAction.";
51 G4Exception("G4UserSteppingAction::G4UserSteppingAction()",
52 "Tracking0002", FatalException, msg);
53 }
54}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition: G4Exception.cc:35
static G4ParticleTable * GetParticleTable()

◆ ~G4UserSteppingAction()

G4UserSteppingAction::~G4UserSteppingAction ( )
virtual

Definition at line 57 of file G4UserSteppingAction.cc.

59{
60}

Member Function Documentation

◆ SetSteppingManagerPointer()

void G4UserSteppingAction::SetSteppingManagerPointer ( G4SteppingManager pValue)
virtual

Reimplemented in G4MultiSteppingAction.

Definition at line 63 of file G4UserSteppingAction.cc.

65{
66 fpSteppingManager = pValue;
67}
G4SteppingManager * fpSteppingManager

Referenced by G4TrackingManager::SetUserAction().

◆ UserSteppingAction()

virtual void G4UserSteppingAction::UserSteppingAction ( const G4Step )
inlinevirtual

Member Data Documentation

◆ fpSteppingManager

G4SteppingManager* G4UserSteppingAction::fpSteppingManager = nullptr
protected

Definition at line 60 of file G4UserSteppingAction.hh.

Referenced by SetSteppingManagerPointer().


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