|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Map of all process names to IDs. More...
#include <BDSProcessMap.hh>

Public Member Functions | |
| G4String | operator() (const G4int &type, const G4int &subType=-1) const |
| Main access method for getting the name of processes. | |
| G4String | GetProcessName (const G4int &type, const G4int &subType=-1) const |
| Despatched function to operator() for getting the name of processes. | |
Static Public Member Functions | |
| static BDSProcessMap * | Instance () |
| Singleton accessor. | |
Private Types | |
| typedef std::unordered_map< G4int, G4String > | processMap |
| Typedef to make syntax more readable. | |
Private Member Functions | |
| BDSProcessMap () | |
| Private default constructor as singleton pattern. | |
Private Attributes | |
| processMap | processes |
| Map of main process categories. | |
| std::unordered_map< G4int, processMap > | subProcesses |
Static Private Attributes | |
| static BDSProcessMap * | instance = nullptr |
| Singleton instance. | |
Map of all process names to IDs.
Definition at line 32 of file BDSProcessMap.hh.
|
private |
Typedef to make syntax more readable.
Definition at line 55 of file BDSProcessMap.hh.
| BDSProcessMap::~BDSProcessMap | ( | ) |
Definition at line 33 of file BDSProcessMap.cc.
|
private |
Private default constructor as singleton pattern.
note 'processMap' is typedef in header
Definition at line 70 of file BDSProcessMap.cc.
References processes, and subProcesses.
Referenced by Instance().

|
inline |
Despatched function to operator() for getting the name of processes.
Definition at line 44 of file BDSProcessMap.hh.
References operator()().
Referenced by BDSTrajectoryPoint::BDSTrajectoryPoint(), BDSTrajectoryPoint::BDSTrajectoryPoint(), and BDSTrajectoryPoint::IsScatteringPoint().


|
static |
Singleton accessor.
Definition at line 26 of file BDSProcessMap.cc.
References BDSProcessMap(), and instance.
Referenced by BDSTrajectoryPoint::BDSTrajectoryPoint(), BDSTrajectoryPoint::BDSTrajectoryPoint(), and BDSTrajectoryPoint::IsScatteringPoint().


| G4String BDSProcessMap::operator() | ( | const G4int & | type, |
| const G4int & | subType = -1 |
||
| ) | const |
Main access method for getting the name of processes.
Definition at line 39 of file BDSProcessMap.cc.
References processes, and subProcesses.
Referenced by GetProcessName().

|
staticprivate |
|
private |
Map of main process categories.
Definition at line 58 of file BDSProcessMap.hh.
Referenced by BDSProcessMap(), and operator()().
|
private |
Map of subprocesses mapped (again) to main processes categories. Safer than using a vector as there's not guarantee there in order by geant or contiguous.
Definition at line 63 of file BDSProcessMap.hh.
Referenced by BDSProcessMap(), and operator()().