Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HadrontherapyActionInitialization Class Reference

#include <HadrontherapyActionInitialization.hh>

Inheritance diagram for HadrontherapyActionInitialization:
Collaboration diagram for HadrontherapyActionInitialization:

Public Member Functions

 HadrontherapyActionInitialization ()
 
virtual ~HadrontherapyActionInitialization ()
 
virtual void BuildForMaster () const
 
virtual void Build () const
 
- Public Member Functions inherited from G4VUserActionInitialization
 G4VUserActionInitialization ()
 
virtual ~G4VUserActionInitialization ()
 
virtual G4VSteppingVerboseInitializeSteppingVerbose () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserActionInitialization
void SetUserAction (G4VUserPrimaryGeneratorAction *) const
 
void SetUserAction (G4UserRunAction *) const
 
void SetUserAction (G4UserEventAction *) const
 
void SetUserAction (G4UserStackingAction *) const
 
void SetUserAction (G4UserTrackingAction *) const
 
void SetUserAction (G4UserSteppingAction *) const
 

Detailed Description

Definition at line 37 of file HadrontherapyActionInitialization.hh.

Constructor & Destructor Documentation

HadrontherapyActionInitialization::HadrontherapyActionInitialization ( )

Definition at line 41 of file HadrontherapyActionInitialization.cc.

43  // fDetectorConstruction(detConstruction)
44 {}
HadrontherapyActionInitialization::~HadrontherapyActionInitialization ( )
virtual

Definition at line 48 of file HadrontherapyActionInitialization.cc.

49 {//delete masterGPS;
50 }

Member Function Documentation

void HadrontherapyActionInitialization::Build ( void  ) const
virtual

Implements G4VUserActionInitialization.

Definition at line 71 of file HadrontherapyActionInitialization.cc.

72 {
73  // Initialize the primary particles
75  SetUserAction(pPrimaryGenerator);
76 
77  // Optional UserActions: run, event, stepping
79  SetUserAction(pRunAction);
80 
81 
83  SetUserAction(pEventAction);
84 
85  HadrontherapySteppingAction* steppingAction = new HadrontherapySteppingAction(pRunAction);
86  SetUserAction(steppingAction);
87 
88 
89 
90 }
void SetUserAction(G4VUserPrimaryGeneratorAction *) const

Here is the call graph for this function:

void HadrontherapyActionInitialization::BuildForMaster ( void  ) const
virtual

Reimplemented from G4VUserActionInitialization.

Definition at line 54 of file HadrontherapyActionInitialization.cc.

55 {
56  // In MT mode, to be clearer, the RunAction class for the master thread might be
57  // different than the one used for the workers.
58  // This RunAction will be called before and after starting the
59  // workers.
60  // For more details, please refer to :
61  // https://twiki.cern.ch/twiki/bin/view/Geant4/Geant4MTForApplicationDevelopers
62  //
63  // HadrontherapyRunAction* runAction= new HadrontherapyRunAction(fDetectorConstruction);
64  // SetUserAction(runAction);
66  SetUserAction(pRunAction);
67 }
void SetUserAction(G4VUserPrimaryGeneratorAction *) const

Here is the call graph for this function:


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