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

#include <G4RTWorkerInitialization.hh>

+ Inheritance diagram for G4RTWorkerInitialization:

Public Member Functions

 G4RTWorkerInitialization ()
 
virtual ~G4RTWorkerInitialization ()
 
virtual void WorkerRunStart () const
 
virtual void WorkerRunEnd () const
 
- Public Member Functions inherited from G4UserWorkerInitialization
 G4UserWorkerInitialization ()
 
virtual ~G4UserWorkerInitialization ()
 
virtual void WorkerInitialize () const
 
virtual void WorkerStart () const
 
virtual void WorkerRunStart () const
 
virtual void WorkerRunEnd () const
 
virtual void WorkerStop () const
 

Detailed Description

Definition at line 44 of file G4RTWorkerInitialization.hh.

Constructor & Destructor Documentation

◆ G4RTWorkerInitialization()

G4RTWorkerInitialization::G4RTWorkerInitialization ( )

Definition at line 56 of file G4RTWorkerInitialization.cc.

57{;}

◆ ~G4RTWorkerInitialization()

G4RTWorkerInitialization::~G4RTWorkerInitialization ( )
virtual

Definition at line 59 of file G4RTWorkerInitialization.cc.

60{;}

Member Function Documentation

◆ WorkerRunEnd()

void G4RTWorkerInitialization::WorkerRunEnd ( ) const
virtual

Reimplemented from G4UserWorkerInitialization.

Definition at line 88 of file G4RTWorkerInitialization.cc.

89{
91 runMan->SetUserAction(const_cast<G4UserRunAction*>(theUserRunAction));
92 runMan->SetUserAction(const_cast<G4VUserPrimaryGeneratorAction*>(theUserPrimaryGeneratorAction));
93 runMan->SetUserAction(const_cast<G4UserEventAction*>(theUserEventAction));
94 runMan->SetUserAction(const_cast<G4UserStackingAction*>(theUserStackingAction));
95 runMan->SetUserAction(const_cast<G4UserTrackingAction*>(theUserTrackingAction));
96 runMan->SetUserAction(const_cast<G4UserSteppingAction*>(theUserSteppingAction));
97}
virtual void SetUserAction(G4UserRunAction *userAction)
static G4WorkerRunManager * GetWorkerRunManager()

◆ WorkerRunStart()

void G4RTWorkerInitialization::WorkerRunStart ( ) const
virtual

Reimplemented from G4UserWorkerInitialization.

Definition at line 62 of file G4RTWorkerInitialization.cc.

63{
64 if(!theRTRunAction) theRTRunAction = new G4RTRunAction;
65 if(!theRTPrimaryGeneratorAction) theRTPrimaryGeneratorAction = new G4RTPrimaryGeneratorAction;
66 if(!theRTTrackingAction) theRTTrackingAction = new G4RTTrackingAction;
67 if(!theRTSteppingAction) theRTSteppingAction = new G4RTSteppingAction;
68
70
71 theUserRunAction = runMan->GetUserRunAction();
72 theUserPrimaryGeneratorAction = runMan->GetUserPrimaryGeneratorAction();
73 theUserEventAction = runMan->GetUserEventAction();
74 theUserStackingAction = runMan->GetUserStackingAction();
75 theUserTrackingAction = runMan->GetUserTrackingAction();
76 theUserSteppingAction = runMan->GetUserSteppingAction();
77
78 runMan->SetUserAction(theRTRunAction);
79 runMan->SetUserAction(theRTPrimaryGeneratorAction);
80 runMan->SetUserAction(static_cast<G4UserEventAction*>(0));
81 runMan->SetUserAction(static_cast<G4UserStackingAction*>(0));
82 runMan->SetUserAction(theRTTrackingAction);
83 runMan->SetUserAction(theRTSteppingAction);
84
85 theRTPrimaryGeneratorAction->SetUp();
86}
const G4UserTrackingAction * GetUserTrackingAction() const
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
const G4UserEventAction * GetUserEventAction() const
const G4UserStackingAction * GetUserStackingAction() const
const G4UserSteppingAction * GetUserSteppingAction() const
const G4UserRunAction * GetUserRunAction() const

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