SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
PhysicsListManager Class Reference

Provides management of user physics lists. More...

#include <PhysicsListManager.hh>

Inheritance diagram for PhysicsListManager:
Module Singleton< PhysicsListManager >

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)
 

Detailed Description

Provides management of user physics lists.

Note
Current, primary function is selection of a list and . setting the default, which is LCPhys.

Definition at line 29 of file PhysicsListManager.hh.

Constructor & Destructor Documentation

◆ PhysicsListManager()

◆ ~PhysicsListManager()

~PhysicsListManager ( )
virtual

The class destructor.

Definition at line 32 of file PhysicsListManager.cc.

Member Function Documentation

◆ createPhysicsList()

G4VUserPhysicsList * createPhysicsList ( )

◆ enableLimits() [1/2]

bool enableLimits ( )
inline

Return true if physics limits are enabled.

Returns
True if physics limits are enabled; false if not.

Definition at line 87 of file PhysicsListManager.hh.

References PhysicsListManager::m_enableLimits.

Referenced by PhysicsListManager::enableLimits().

◆ enableLimits() [2/2]

void enableLimits ( bool  enableLimits)
inline

Enable physics limits.

Parameters
[in]enableLimitsTrue 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().

◆ enableOptical() [1/2]

bool enableOptical ( )
inline

Return true if optical physics are enabled.

Returns
True if optical physics are enabled; false if not.

Definition at line 95 of file PhysicsListManager.hh.

References PhysicsListManager::m_enableOptical.

Referenced by PhysicsListManager::createPhysicsList(), and PhysicsListManager::enableOptical().

◆ enableOptical() [2/2]

void enableOptical ( bool  enableOptical)
inline

Enable optical physics.

Parameters
[in]enableOpticalSet to true to enable optical physics; false to disable.

Definition at line 103 of file PhysicsListManager.hh.

References PhysicsListManager::enableOptical(), and PhysicsListManager::m_enableOptical.

◆ getCurrentListName()

const std::string& getCurrentListName ( )
inline

Get the name of the current physics list.

Returns
The name of the current physics list.

Definition at line 63 of file PhysicsListManager.hh.

References PhysicsListManager::m_currentListName.

Referenced by PhysicsMessenger::SetNewValue().

◆ isInitialized()

bool isInitialized ( )
inline

Return true if the physics list has been initialized.

Returns
True if list has been initialized; false if not.

Definition at line 71 of file PhysicsListManager.hh.

References PhysicsListManager::m_isInitialized.

Referenced by PhysicsMessenger::SetNewValue().

◆ printAvailablePhysicsLists()

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.

◆ setCurrentListName()

void setCurrentListName ( const std::string &  name)

Set the name of the current physics list. Only available in pre-init state.

Parameters
[in]nameThe 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().

◆ setupSUSY()

void setupSUSY ( )
private

Setup SUSY physics.

◆ setupUserLimitsProcesses()

void setupUserLimitsProcesses ( )

Set up the user limits process.

Definition at line 63 of file PhysicsListManager.cc.

Referenced by RunManager::InitializePhysics().

Member Data Documentation

◆ m_currentList

G4VUserPhysicsList* m_currentList
private

Definition at line 126 of file PhysicsListManager.hh.

Referenced by PhysicsListManager::createPhysicsList().

◆ m_currentListName

std::string m_currentListName
private

◆ m_defaultListName

const std::string m_defaultListName = std::string("QGSP_BERT")
staticprivate

◆ m_enableLimits

bool m_enableLimits
private

Definition at line 130 of file PhysicsListManager.hh.

Referenced by PhysicsListManager::enableLimits().

◆ m_enableOptical

bool m_enableOptical
private

Definition at line 132 of file PhysicsListManager.hh.

Referenced by PhysicsListManager::enableOptical().

◆ m_factory

G4PhysListFactory* m_factory
private

◆ m_isFromDefault

bool m_isFromDefault
private

◆ m_isInitialized

bool m_isInitialized
private

Definition at line 128 of file PhysicsListManager.hh.

Referenced by PhysicsListManager::isInitialized().

◆ m_messenger

PhysicsMessenger* m_messenger
private

Definition at line 134 of file PhysicsListManager.hh.

Referenced by PhysicsListManager::PhysicsListManager().

◆ m_setupLimits

bool m_setupLimits
private

Definition at line 131 of file PhysicsListManager.hh.


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