|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Provides management of user physics lists. More...
#include <PhysicsListManager.hh>
Public Member Functions | |
| PhysicsListManager () | |
| virtual | ~PhysicsListManager () |
| G4VUserPhysicsList * | createPhysicsList () |
| bool | enableLimits () |
| void | enableLimits (bool enableLimits) |
| bool | enableOptical () |
| void | enableOptical (bool enableOptical) |
| const std::string & | getCurrentListName () |
| bool | isInitialized () |
| void | printAvailablePhysicsLists () |
| void | setCurrentListName (const std::string &name) |
| void | setupUserLimitsProcesses () |
Public Member Functions inherited from Module | |
| virtual | ~Module () |
| virtual void | beginEvent (const G4Event *) |
| virtual void | beginRun (const G4Run *) |
| virtual void | cleanup () |
| bool | deleteOnExit () |
| virtual void | endEvent (const G4Event *) |
| virtual void | endRun (const G4Run *) |
| const std::string & | getName () const |
| ModuleStatus | getStatus () const |
| virtual void | initialize () |
| LogStream & | log () |
| virtual void | postTracking (const G4Track *) |
| virtual void | preTracking (const G4Track *) |
| virtual void | reset () |
| virtual void | stepping (const G4Step *) |
Public Member Functions inherited from Singleton< PhysicsListManager > | |
| Singleton () | |
| ~Singleton () | |
| void | release () |
Private Member Functions | |
| void | setupSUSY () |
Private Attributes | |
| G4VUserPhysicsList * | m_currentList |
| std::string | m_currentListName |
| bool | m_enableLimits |
| bool | m_enableOptical |
| G4PhysListFactory * | m_factory |
| bool | m_isFromDefault |
| bool | m_isInitialized |
| PhysicsMessenger * | m_messenger |
| bool | m_setupLimits |
Static Private Attributes | |
| static const std::string | m_defaultListName = std::string("QGSP_BERT") |
Additional Inherited Members | |
Public Types inherited from Module | |
| enum | ModuleStatus { eOkay = 0 , eNotInitialized = 1 , eBadState = 2 , eFatalError = 3 } |
Static Public Member Functions inherited from Singleton< PhysicsListManager > | |
| static PhysicsListManager * | instance () |
Public Attributes inherited from Module | |
| bool | m_deleteOnExit |
| LogStream * | m_log |
| std::string | m_name |
| ModuleStatus | m_status |
Protected Member Functions inherited from Module | |
| Module (const std::string &name, bool deleteOnExit=true, bool autoRegister=true) | |
Provides management of user physics lists.
Definition at line 29 of file PhysicsListManager.hh.
The class constructor.
Definition at line 20 of file PhysicsListManager.cc.
References PhysicsListManager::m_currentListName, PhysicsListManager::m_defaultListName, PhysicsListManager::m_factory, and PhysicsListManager::m_messenger.
|
virtual |
The class destructor.
Definition at line 32 of file PhysicsListManager.cc.
| G4VUserPhysicsList * createPhysicsList | ( | ) |
Initialize the currently selected physics list. This will also register option physics such as optical and extended particle set.
Definition at line 40 of file PhysicsListManager.cc.
References LOG::done, PhysicsListManager::enableOptical(), Singleton< HepPDTManager >::instance(), Module::log(), PhysicsListManager::m_currentList, PhysicsListManager::m_currentListName, PhysicsListManager::m_defaultListName, PhysicsListManager::m_factory, PhysicsListManager::m_isFromDefault, and LOG::okay.
|
inline |
Return true if physics limits are enabled.
Definition at line 87 of file PhysicsListManager.hh.
References PhysicsListManager::m_enableLimits.
Referenced by PhysicsListManager::enableLimits().
|
inline |
Enable physics limits.
| [in] | enableLimits | True to enable limits; false to disable. |
Definition at line 79 of file PhysicsListManager.hh.
References PhysicsListManager::enableLimits(), and PhysicsListManager::m_enableLimits.
Referenced by RunManager::InitializePhysics().
|
inline |
Return true if optical physics are enabled.
Definition at line 95 of file PhysicsListManager.hh.
References PhysicsListManager::m_enableOptical.
Referenced by PhysicsListManager::createPhysicsList(), and PhysicsListManager::enableOptical().
|
inline |
Enable optical physics.
| [in] | enableOptical | Set to true to enable optical physics; false to disable. |
Definition at line 103 of file PhysicsListManager.hh.
References PhysicsListManager::enableOptical(), and PhysicsListManager::m_enableOptical.
|
inline |
Get the name of the current physics list.
Definition at line 63 of file PhysicsListManager.hh.
References PhysicsListManager::m_currentListName.
Referenced by PhysicsMessenger::SetNewValue().
|
inline |
Return true if the physics list has been initialized.
Definition at line 71 of file PhysicsListManager.hh.
References PhysicsListManager::m_isInitialized.
Referenced by PhysicsMessenger::SetNewValue().
| void printAvailablePhysicsLists | ( | ) |
Print a list of available physics lists.
Definition at line 86 of file PhysicsListManager.cc.
References LogStream::always(), Module::log(), and PhysicsListManager::m_factory.
| void setCurrentListName | ( | const std::string & | name | ) |
Set the name of the current physics list. Only available in pre-init state.
| [in] | name | The name of the physics list. |
Definition at line 35 of file PhysicsListManager.cc.
References PhysicsListManager::m_currentListName, and PhysicsListManager::m_isFromDefault.
Referenced by PhysicsMessenger::SetNewValue().
|
private |
Setup SUSY physics.
| void setupUserLimitsProcesses | ( | ) |
Set up the user limits process.
Definition at line 63 of file PhysicsListManager.cc.
Referenced by RunManager::InitializePhysics().
|
private |
Definition at line 126 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::createPhysicsList().
|
private |
Definition at line 136 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::PhysicsListManager(), PhysicsListManager::createPhysicsList(), PhysicsListManager::getCurrentListName(), and PhysicsListManager::setCurrentListName().
|
staticprivate |
Definition at line 137 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::PhysicsListManager(), and PhysicsListManager::createPhysicsList().
|
private |
Definition at line 130 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::enableLimits().
|
private |
Definition at line 132 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::enableOptical().
|
private |
Definition at line 139 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::PhysicsListManager(), PhysicsListManager::createPhysicsList(), and PhysicsListManager::printAvailablePhysicsLists().
|
private |
Definition at line 129 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::createPhysicsList(), and PhysicsListManager::setCurrentListName().
|
private |
Definition at line 128 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::isInitialized().
|
private |
Definition at line 134 of file PhysicsListManager.hh.
Referenced by PhysicsListManager::PhysicsListManager().
|
private |
Definition at line 131 of file PhysicsListManager.hh.