Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4RTWorkerInitialization Class Reference

#include <G4RTWorkerInitialization.hh>

Inheritance diagram for G4RTWorkerInitialization:
G4UserWorkerInitialization

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 WorkerStop () const
 

Detailed Description

Definition at line 44 of file G4RTWorkerInitialization.hh.

Constructor & Destructor Documentation

G4RTWorkerInitialization::G4RTWorkerInitialization ( )

Definition at line 57 of file G4RTWorkerInitialization.cc.

58 {;}
G4RTWorkerInitialization::~G4RTWorkerInitialization ( )
virtual

Definition at line 60 of file G4RTWorkerInitialization.cc.

61 {;}

Member Function Documentation

void G4RTWorkerInitialization::WorkerRunEnd ( ) const
virtual

Reimplemented from G4UserWorkerInitialization.

Definition at line 89 of file G4RTWorkerInitialization.cc.

References G4WorkerRunManager::GetWorkerRunManager(), and G4WorkerRunManager::SetUserAction().

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

Reimplemented from G4UserWorkerInitialization.

Definition at line 63 of file G4RTWorkerInitialization.cc.

References G4RunManager::GetUserEventAction(), G4RunManager::GetUserPrimaryGeneratorAction(), G4RunManager::GetUserRunAction(), G4RunManager::GetUserStackingAction(), G4RunManager::GetUserSteppingAction(), G4RunManager::GetUserTrackingAction(), G4WorkerRunManager::GetWorkerRunManager(), G4RTPrimaryGeneratorAction::SetUp(), and G4WorkerRunManager::SetUserAction().

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

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