Geant4 11.2.2
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 ()=default
 
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 40 of file G4UserSteppingAction.cc.

42{
43 if (! (G4ParticleTable::GetParticleTable()->GetReadiness())) {
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.";
52 "G4UserSteppingAction::G4UserSteppingAction()", "Tracking0002", FatalException, msg);
53 }
54}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static G4ParticleTable * GetParticleTable()

◆ ~G4UserSteppingAction()

virtual G4UserSteppingAction::~G4UserSteppingAction ( )
virtualdefault

Member Function Documentation

◆ SetSteppingManagerPointer()

void G4UserSteppingAction::SetSteppingManagerPointer ( G4SteppingManager * pValue)
virtual

Reimplemented in G4MultiSteppingAction.

Definition at line 57 of file G4UserSteppingAction.cc.

59{
60 fpSteppingManager = pValue;
61}
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 58 of file G4UserSteppingAction.hh.

Referenced by SetSteppingManagerPointer().


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