G4VUserPhysicsList to aggregate physics lists to be used by multiple Geant4 modules in one offline session. More...
#include <GlobalPhysicsList.h>
Public Member Functions | |
virtual void | ConstructParticle () |
virtual void | ConstructProcess () |
const G4VUserPhysicsList * | GetPhysics (const G4String &name) const |
GlobalPhysicsList () | |
void | RegisterPhysics (const G4String &name, G4VUserPhysicsList *userList) |
virtual void | SetCuts () |
void | SetVerboseLevel (bool verbosity) |
~GlobalPhysicsList () | |
Private Attributes | |
std::vector< G4VUserPhysicsList * > | fPhysicsVector |
std::vector< G4String > | fPhysicsVectorNames |
G4VUserPhysicsList to aggregate physics lists to be used by multiple Geant4 modules in one offline session.
This physics list is only a container. It is an aggregation of lists where it is expected there will be a default list that provides most of the processes and particles and other lists that can potentially add processes that are used in particular modules. Currently the only default physics list is DefaultPhysicsList.
In order to run a module with a customized physics list, one only needs to provide a class that inherits from G4VUserPhysicsList and register it using the RegisterPhysics method. This list (and none of the geant4 tools for that matter) will check the consistency of the lists created. It is the responsibility of the module developers to keep track of that.
Definition at line 32 of file GlobalPhysicsList.h.
GlobalPhysicsList::GlobalPhysicsList | ( | ) |
Definition at line 12 of file GlobalPhysicsList.cc.
GlobalPhysicsList::~GlobalPhysicsList | ( | ) |
Definition at line 18 of file GlobalPhysicsList.cc.
References INFO.
|
virtual |
Definition at line 30 of file GlobalPhysicsList.cc.
|
virtual |
Definition at line 40 of file GlobalPhysicsList.cc.
const G4VUserPhysicsList * GlobalPhysicsList::GetPhysics | ( | const G4String & | name | ) | const |
Definition at line 70 of file GlobalPhysicsList.cc.
void GlobalPhysicsList::RegisterPhysics | ( | const G4String & | name, |
G4VUserPhysicsList * | userList | ||
) |
Definition at line 83 of file GlobalPhysicsList.cc.
Referenced by tls::Geant4Manager::AddCustomization(), and tls::Geant4Manager::SetDefaultPhysicsList().
|
virtual |
Definition at line 62 of file GlobalPhysicsList.cc.
Referenced by tls::Geant4Manager::Reset().
void GlobalPhysicsList::SetVerboseLevel | ( | bool | verbosity | ) |
Definition at line 52 of file GlobalPhysicsList.cc.
|
private |
Definition at line 59 of file GlobalPhysicsList.h.
|
private |
Definition at line 58 of file GlobalPhysicsList.h.