Data structure to hold the different Geant4 global objects required to run a single module. More...
#include <Geant4Customization.h>
Public Member Functions | |
Geant4Customization () | |
Geant4Customization (const std::string &name, G4VUserDetectorConstruction *const construction=nullptr, G4VUserPhysicsList *const physicsList=nullptr, G4VUserPrimaryGeneratorAction *const primaryGenerator=nullptr) | |
G4VUserDetectorConstruction * | GetDetectorConstruction () |
G4UserEventAction * | GetEventAction () |
std::string | GetName () const |
G4VUserPhysicsList * | GetPhysicsList () |
G4VPhysicsListCustomization * | GetPhysicsListCustomization () |
G4VUserPrimaryGeneratorAction * | GetPrimaryGenerator () |
G4UserRunAction * | GetRunAction () |
G4UserStackingAction * | GetStackingAction () |
G4UserSteppingAction * | GetSteppingAction () |
G4UserTrackingAction * | GetTrackingAction () |
void | SetDetectorConstruction (G4VUserDetectorConstruction *const construction) |
void | SetEventAction (G4UserEventAction *const action) |
void | SetPhysicsList (G4VUserPhysicsList *const physicsList) |
void | SetPrimaryGenerator (G4VUserPrimaryGeneratorAction *const action) |
void | SetRunAction (G4UserRunAction *const action) |
void | SetRunManager (boost::shared_ptr< G4RunManager > action) |
void | SetStackingAction (G4UserStackingAction *const action) |
void | SetSteppingAction (G4UserSteppingAction *const action) |
void | SetTrackingAction (G4UserTrackingAction *const action) |
virtual | ~Geant4Customization ()=default |
Private Attributes | |
G4VUserDetectorConstruction * | fDetectorConstruction = nullptr |
boost::shared_ptr < G4UserEventAction > | fEventAction |
boost::shared_ptr< G4RunManager > | fG4RunManager |
std::string | fName |
G4VUserPhysicsList * | fPhysicsList = nullptr |
boost::shared_ptr < G4VUserPrimaryGeneratorAction > | fPrimaryGenerator |
boost::shared_ptr < G4UserRunAction > | fRunAction |
boost::shared_ptr < G4UserStackingAction > | fStackingAction |
boost::shared_ptr < G4UserSteppingAction > | fSteppingAction |
boost::shared_ptr < G4UserTrackingAction > | fTrackingAction |
Data structure to hold the different Geant4 global objects required to run a single module.
This class contains a G4VUserPhysicsList, a G4VUserDetectorConstruction, a G4VUserPrimaryGeneratorAction, and optionally the usual user actions. Users can provide a G4VPhysicsListCustomization as physics list, in which case the manager will call the custom methods when needed.
Definition at line 38 of file Geant4Customization.h.
|
inline |
Definition at line 40 of file Geant4Customization.h.
|
inline |
Definition at line 41 of file Geant4Customization.h.
|
virtualdefault |
|
inline |
Definition at line 75 of file Geant4Customization.h.
References fDetectorConstruction.
Referenced by tls::Geant4Manager::AddCustomization().
|
inline |
Definition at line 87 of file Geant4Customization.h.
References fEventAction.
|
inline |
Definition at line 53 of file Geant4Customization.h.
References fName.
Referenced by tls::Geant4Manager::AddCustomization().
|
inline |
Definition at line 77 of file Geant4Customization.h.
References fPhysicsList.
Referenced by tls::Geant4Manager::AddCustomization().
|
inline |
Definition at line 78 of file Geant4Customization.h.
References fPhysicsList.
|
inline |
Definition at line 92 of file Geant4Customization.h.
References fPrimaryGenerator.
|
inline |
Definition at line 89 of file Geant4Customization.h.
References fRunAction.
|
inline |
Definition at line 81 of file Geant4Customization.h.
References fStackingAction.
|
inline |
Definition at line 85 of file Geant4Customization.h.
References fSteppingAction.
|
inline |
Definition at line 83 of file Geant4Customization.h.
References fTrackingAction.
|
inline |
Definition at line 58 of file Geant4Customization.h.
References fDetectorConstruction.
|
inline |
Definition at line 67 of file Geant4Customization.h.
References fEventAction.
Referenced by G4TankSimulatorASCII::G4TankSimulator::Init(), G4XTankSimulatorAG::G4XTankSimulator::Init(), and G4TankSimulatorOG::G4TankSimulator::Init().
|
inline |
Definition at line 55 of file Geant4Customization.h.
References fPhysicsList.
|
inline |
Definition at line 72 of file Geant4Customization.h.
References fPrimaryGenerator.
Referenced by G4TankSimulatorASCII::G4TankSimulator::Init(), G4TankSimulatorOG::G4TankSimulator::Init(), G4XTankSimulatorAG::G4XTankSimulator::Init(), GroundPropagatorAG::GroundPropagator::Init(), and EdepSimulatorAG::EdepSimulator::Init().
|
inline |
Definition at line 69 of file Geant4Customization.h.
References fRunAction.
Referenced by G4TankSimulatorASCII::G4TankSimulator::Init(), G4XTankSimulatorAG::G4XTankSimulator::Init(), and G4TankSimulatorOG::G4TankSimulator::Init().
|
inline |
Definition at line 95 of file Geant4Customization.h.
References fG4RunManager.
|
inline |
Definition at line 61 of file Geant4Customization.h.
References fStackingAction.
Referenced by G4TankSimulatorASCII::G4TankSimulator::Init(), G4XTankSimulatorAG::G4XTankSimulator::Init(), and G4TankSimulatorOG::G4TankSimulator::Init().
|
inline |
Definition at line 65 of file Geant4Customization.h.
References fSteppingAction.
Referenced by G4TankSimulatorASCII::G4TankSimulator::Init(), G4TankSimulatorOG::G4TankSimulator::Init(), G4XTankSimulatorAG::G4XTankSimulator::Init(), GroundPropagatorAG::GroundPropagator::Init(), and EdepSimulatorAG::EdepSimulator::Init().
|
inline |
Definition at line 63 of file Geant4Customization.h.
References fTrackingAction.
Referenced by G4TankSimulatorASCII::G4TankSimulator::Init(), G4XTankSimulatorAG::G4XTankSimulator::Init(), and G4TankSimulatorOG::G4TankSimulator::Init().
|
private |
Definition at line 104 of file Geant4Customization.h.
Referenced by GetDetectorConstruction(), and SetDetectorConstruction().
|
private |
Definition at line 114 of file Geant4Customization.h.
Referenced by GetEventAction(), and SetEventAction().
|
private |
Definition at line 117 of file Geant4Customization.h.
Referenced by SetRunManager().
|
private |
Definition at line 99 of file Geant4Customization.h.
Referenced by GetName().
|
private |
Definition at line 107 of file Geant4Customization.h.
Referenced by GetPhysicsList(), GetPhysicsListCustomization(), and SetPhysicsList().
|
private |
Definition at line 109 of file Geant4Customization.h.
Referenced by GetPrimaryGenerator(), and SetPrimaryGenerator().
|
private |
Definition at line 115 of file Geant4Customization.h.
Referenced by GetRunAction(), and SetRunAction().
|
private |
Definition at line 111 of file Geant4Customization.h.
Referenced by GetStackingAction(), and SetStackingAction().
|
private |
Definition at line 113 of file Geant4Customization.h.
Referenced by GetSteppingAction(), and SetSteppingAction().
|
private |
Definition at line 112 of file Geant4Customization.h.
Referenced by GetTrackingAction(), and SetTrackingAction().