Geant4 VMC Version 6.6
|
Maps G4 process sub types to TMCProcess and TG4G3Control codes. More...
#include <TG4ProcessMap.h>
Public Member Functions | |
TG4ProcessMap () | |
TG4ProcessMap (const TG4ProcessMap &right)=delete | |
TG4ProcessMap & | operator= (const TG4ProcessMap &right)=delete |
~TG4ProcessMap () | |
G4bool | Add (G4int subType, TMCProcess mcProcess, TG4G3Control g3Control) |
void | PrintAll () const |
void | Clear () |
std::pair< TMCProcess, TG4G3Control > | GetCodes (const G4VProcess *process) const |
TMCProcess | GetMCProcess (const G4VProcess *process) const |
TG4G3Control | GetControl (const G4VProcess *process) const |
G4String | GetMCProcessName (const G4VProcess *process) const |
G4String | GetControlName (const G4VProcess *process) const |
Static Public Member Functions | |
static TG4ProcessMap * | Instance () |
Private Member Functions | |
G4bool | IsDefined (G4int subType) |
Private Attributes | |
std::map< G4int, std::pair< TMCProcess, TG4G3Control > > | fMap |
map container | |
Static Private Attributes | |
static TG4ProcessMap * | fgInstance = 0 |
this instance | |
Maps G4 process sub types to TMCProcess and TG4G3Control codes.
Singleton map container for associated pairs of G4 process sub types and TMCProcess and TG4G3Control code.
Definition at line 36 of file TG4ProcessMap.h.
TG4ProcessMap::TG4ProcessMap | ( | ) |
Default constructor
Definition at line 26 of file TG4ProcessMap.cxx.
|
delete |
TG4ProcessMap::~TG4ProcessMap | ( | ) |
Destructor
Definition at line 39 of file TG4ProcessMap.cxx.
|
delete |
|
inlinestatic |
Return this instance
Definition at line 72 of file TG4ProcessMap.h.
Referenced by TG4ProcessMapPhysics::ConstructProcess(), TG4ProcessMapPhysics::FillMap(), TG4G3ControlVector::GetControlValue(), and TG4ComposedPhysicsMessenger::SetNewValue().
G4bool TG4ProcessMap::Add | ( | G4int | subType, |
TMCProcess | mcProcess, | ||
TG4G3Control | g3Control ) |
Add the pair to the map.
Definition at line 66 of file TG4ProcessMap.cxx.
Referenced by TG4ProcessMapPhysics::FillMap().
void TG4ProcessMap::PrintAll | ( | ) | const |
Dump the whole map.
Definition at line 81 of file TG4ProcessMap.cxx.
Referenced by TG4ComposedPhysicsMessenger::SetNewValue().
void TG4ProcessMap::Clear | ( | ) |
Clear the map.
Definition at line 99 of file TG4ProcessMap.cxx.
std::pair< TMCProcess, TG4G3Control > TG4ProcessMap::GetCodes | ( | const G4VProcess * | process | ) | const |
Return the pair of TMCProcess and G3 control codes for the process with a given name.
Definition at line 108 of file TG4ProcessMap.cxx.
Referenced by GetControl(), and GetMCProcess().
TMCProcess TG4ProcessMap::GetMCProcess | ( | const G4VProcess * | process | ) | const |
Return TMCProcess code for the process with a given name.
Definition at line 129 of file TG4ProcessMap.cxx.
Referenced by TG4PhysicsManager::GetMCProcess(), and GetMCProcessName().
TG4G3Control TG4ProcessMap::GetControl | ( | const G4VProcess * | process | ) | const |
Return G3 control code for the process with a given name.
Definition at line 137 of file TG4ProcessMap.cxx.
Referenced by GetControlName(), and TG4G3ControlVector::GetControlValue().
G4String TG4ProcessMap::GetMCProcessName | ( | const G4VProcess * | process | ) | const |
Return TMCProcess code for the process with a given name.
Definition at line 145 of file TG4ProcessMap.cxx.
G4String TG4ProcessMap::GetControlName | ( | const G4VProcess * | process | ) | const |
Return G3 control code for the process with a given name.
Definition at line 155 of file TG4ProcessMap.cxx.
|
private |
Return true if the first is already in the map.
Definition at line 51 of file TG4ProcessMap.cxx.
Referenced by Add().
|
staticprivate |
this instance
Definition at line 64 of file TG4ProcessMap.h.
Referenced by Instance(), TG4ProcessMap(), and ~TG4ProcessMap().
|
private |
map container
Definition at line 67 of file TG4ProcessMap.h.
Referenced by Add(), Clear(), GetCodes(), IsDefined(), and PrintAll().