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

#include <G4UserStackingAction.hh>

+ Inheritance diagram for G4UserStackingAction:

Public Member Functions

 G4UserStackingAction ()
 
virtual ~G4UserStackingAction ()
 
void SetStackManager (G4StackManager *value)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack)
 
virtual void NewStage ()
 
virtual void PrepareNewEvent ()
 

Protected Attributes

G4StackManagerstackManager
 

Detailed Description

Definition at line 44 of file G4UserStackingAction.hh.

Constructor & Destructor Documentation

◆ G4UserStackingAction()

G4UserStackingAction::G4UserStackingAction ( )

Definition at line 37 of file G4UserStackingAction.cc.

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

◆ ~G4UserStackingAction()

G4UserStackingAction::~G4UserStackingAction ( )
virtual

Definition at line 54 of file G4UserStackingAction.cc.

55{;}

Member Function Documentation

◆ ClassifyNewTrack()

G4ClassificationOfNewTrack G4UserStackingAction::ClassifyNewTrack ( const G4Track aTrack)
virtual

◆ NewStage()

void G4UserStackingAction::NewStage ( )
virtual

◆ PrepareNewEvent()

void G4UserStackingAction::PrepareNewEvent ( )
virtual

◆ SetStackManager()

void G4UserStackingAction::SetStackManager ( G4StackManager value)
inline

Definition at line 52 of file G4UserStackingAction.hh.

53 { stackManager = value; }
G4StackManager * stackManager

Referenced by G4StackManager::SetUserStackingAction().

Member Data Documentation

◆ stackManager

G4StackManager* G4UserStackingAction::stackManager
protected

Definition at line 50 of file G4UserStackingAction.hh.

Referenced by SetStackManager().


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