List of all members | Public Member Functions | Private Attributes
tls::Geant4Customization Class Reference

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 ()
 
G4VPhysicsListCustomizationGetPhysicsListCustomization ()
 
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
 

Detailed Description

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.

Author
Martin Maur
Javier Gonzalez
Date
04 May 2012

Definition at line 38 of file Geant4Customization.h.

Constructor & Destructor Documentation

tls::Geant4Customization::Geant4Customization ( )
inline

Definition at line 40 of file Geant4Customization.h.

tls::Geant4Customization::Geant4Customization ( const std::string &  name,
G4VUserDetectorConstruction *const  construction = nullptr,
G4VUserPhysicsList *const  physicsList = nullptr,
G4VUserPrimaryGeneratorAction *const  primaryGenerator = nullptr 
)
inline

Definition at line 41 of file Geant4Customization.h.

virtual tls::Geant4Customization::~Geant4Customization ( )
virtualdefault

Member Function Documentation

G4VUserDetectorConstruction* tls::Geant4Customization::GetDetectorConstruction ( )
inline

Definition at line 75 of file Geant4Customization.h.

References fDetectorConstruction.

Referenced by tls::Geant4Manager::AddCustomization().

G4UserEventAction* tls::Geant4Customization::GetEventAction ( )
inline

Definition at line 87 of file Geant4Customization.h.

References fEventAction.

std::string tls::Geant4Customization::GetName ( ) const
inline

Definition at line 53 of file Geant4Customization.h.

References fName.

Referenced by tls::Geant4Manager::AddCustomization().

G4VUserPhysicsList* tls::Geant4Customization::GetPhysicsList ( )
inline

Definition at line 77 of file Geant4Customization.h.

References fPhysicsList.

Referenced by tls::Geant4Manager::AddCustomization().

G4VPhysicsListCustomization* tls::Geant4Customization::GetPhysicsListCustomization ( )
inline

Definition at line 78 of file Geant4Customization.h.

References fPhysicsList.

G4VUserPrimaryGeneratorAction* tls::Geant4Customization::GetPrimaryGenerator ( )
inline

Definition at line 92 of file Geant4Customization.h.

References fPrimaryGenerator.

G4UserRunAction* tls::Geant4Customization::GetRunAction ( )
inline

Definition at line 89 of file Geant4Customization.h.

References fRunAction.

G4UserStackingAction* tls::Geant4Customization::GetStackingAction ( )
inline

Definition at line 81 of file Geant4Customization.h.

References fStackingAction.

G4UserSteppingAction* tls::Geant4Customization::GetSteppingAction ( )
inline

Definition at line 85 of file Geant4Customization.h.

References fSteppingAction.

G4UserTrackingAction* tls::Geant4Customization::GetTrackingAction ( )
inline

Definition at line 83 of file Geant4Customization.h.

References fTrackingAction.

void tls::Geant4Customization::SetDetectorConstruction ( G4VUserDetectorConstruction *const  construction)
inline

Definition at line 58 of file Geant4Customization.h.

References fDetectorConstruction.

void tls::Geant4Customization::SetEventAction ( G4UserEventAction *const  action)
inline
void tls::Geant4Customization::SetPhysicsList ( G4VUserPhysicsList *const  physicsList)
inline

Definition at line 55 of file Geant4Customization.h.

References fPhysicsList.

void tls::Geant4Customization::SetPrimaryGenerator ( G4VUserPrimaryGeneratorAction *const  action)
inline
void tls::Geant4Customization::SetRunAction ( G4UserRunAction *const  action)
inline
void tls::Geant4Customization::SetRunManager ( boost::shared_ptr< G4RunManager >  action)
inline

Definition at line 95 of file Geant4Customization.h.

References fG4RunManager.

void tls::Geant4Customization::SetStackingAction ( G4UserStackingAction *const  action)
inline
void tls::Geant4Customization::SetSteppingAction ( G4UserSteppingAction *const  action)
inline
void tls::Geant4Customization::SetTrackingAction ( G4UserTrackingAction *const  action)
inline

Member Data Documentation

G4VUserDetectorConstruction* tls::Geant4Customization::fDetectorConstruction = nullptr
private

Definition at line 104 of file Geant4Customization.h.

Referenced by GetDetectorConstruction(), and SetDetectorConstruction().

boost::shared_ptr<G4UserEventAction> tls::Geant4Customization::fEventAction
private

Definition at line 114 of file Geant4Customization.h.

Referenced by GetEventAction(), and SetEventAction().

boost::shared_ptr<G4RunManager> tls::Geant4Customization::fG4RunManager
private

Definition at line 117 of file Geant4Customization.h.

Referenced by SetRunManager().

std::string tls::Geant4Customization::fName
private

Definition at line 99 of file Geant4Customization.h.

Referenced by GetName().

G4VUserPhysicsList* tls::Geant4Customization::fPhysicsList = nullptr
private
boost::shared_ptr<G4VUserPrimaryGeneratorAction> tls::Geant4Customization::fPrimaryGenerator
private

Definition at line 109 of file Geant4Customization.h.

Referenced by GetPrimaryGenerator(), and SetPrimaryGenerator().

boost::shared_ptr<G4UserRunAction> tls::Geant4Customization::fRunAction
private

Definition at line 115 of file Geant4Customization.h.

Referenced by GetRunAction(), and SetRunAction().

boost::shared_ptr<G4UserStackingAction> tls::Geant4Customization::fStackingAction
private

Definition at line 111 of file Geant4Customization.h.

Referenced by GetStackingAction(), and SetStackingAction().

boost::shared_ptr<G4UserSteppingAction> tls::Geant4Customization::fSteppingAction
private

Definition at line 113 of file Geant4Customization.h.

Referenced by GetSteppingAction(), and SetSteppingAction().

boost::shared_ptr<G4UserTrackingAction> tls::Geant4Customization::fTrackingAction
private

Definition at line 112 of file Geant4Customization.h.

Referenced by GetTrackingAction(), and SetTrackingAction().


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

, generated on Tue Sep 26 2023.