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

G4VUserPhysicsList to aggregate physics lists to be used by multiple Geant4 modules in one offline session. More...

#include <GlobalPhysicsList.h>

Inheritance diagram for tls::GlobalPhysicsList:
Inheritance graph
[legend]

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
 

Detailed Description

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.

Author
Martin Maur
Javier Gonzalez
Date
14 May 2012

Definition at line 32 of file GlobalPhysicsList.h.

Constructor & Destructor Documentation

GlobalPhysicsList::GlobalPhysicsList ( )

Definition at line 12 of file GlobalPhysicsList.cc.

GlobalPhysicsList::~GlobalPhysicsList ( )

Definition at line 18 of file GlobalPhysicsList.cc.

References INFO.

Member Function Documentation

void GlobalPhysicsList::ConstructParticle ( )
virtual

Definition at line 30 of file GlobalPhysicsList.cc.

void GlobalPhysicsList::ConstructProcess ( )
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 
)
void GlobalPhysicsList::SetCuts ( )
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.

Member Data Documentation

std::vector<G4VUserPhysicsList*> tls::GlobalPhysicsList::fPhysicsVector
private

Definition at line 59 of file GlobalPhysicsList.h.

std::vector<G4String> tls::GlobalPhysicsList::fPhysicsVectorNames
private

Definition at line 58 of file GlobalPhysicsList.h.


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

, generated on Tue Sep 26 2023.