Geant4 VMC Version 6.6
|
The model configuration vector with suitable setters and a messenger. More...
#include <TG4ModelConfigurationManager.h>
Public Types | |
typedef std::vector< TG4ModelConfiguration * > | ModelConfigurationVector |
Public Member Functions | |
TG4ModelConfigurationManager (const G4String &name, const G4String &availableModels="") | |
virtual | ~TG4ModelConfigurationManager () |
void | CreateRegions () |
void | SetModel (const G4String &modelName) |
void | SetModelParticles (const G4String &modelName, const G4String &particles) |
void | SetModelRegions (const G4String &modelName, const G4String ®ionsMedia) |
void | SetOneModelRegion (const G4String &modelName, const G4String ®ionMedium) |
G4String | GetName () const |
G4String | GetAvailableModels () const |
TG4ModelConfiguration * | GetModelConfiguration (const G4String &modelName, G4bool warn=true) const |
const ModelConfigurationVector & | GetVector () const |
Public Member Functions inherited from TG4Verbose | |
TG4Verbose (const G4String &cmdName) | |
TG4Verbose (const G4String &cmdName, G4int verboseLevel) | |
virtual | ~TG4Verbose () |
virtual void | VerboseLevel (G4int level) |
virtual G4int | VerboseLevel () const |
Protected Member Functions | |
void | SetRegionsNames () |
Private Member Functions | |
TG4ModelConfigurationManager (const TG4ModelConfigurationManager &right) | |
Not implemented. | |
TG4ModelConfigurationManager & | operator= (const TG4ModelConfigurationManager &right) |
Not implemented. | |
Private Attributes | |
TG4ModelConfigurationMessenger * | fMessenger |
Messenger. | |
G4String | fName |
The associated physics builder name. | |
G4String | fAvailableModels |
List of available models. | |
ModelConfigurationVector | fVector |
Vector of registered model configurations. | |
G4bool | fCreateRegionsDone |
Info whether regions were constructed. | |
The model configuration vector with suitable setters and a messenger.
Definition at line 32 of file TG4ModelConfigurationManager.h.
Definition at line 35 of file TG4ModelConfigurationManager.h.
TG4ModelConfigurationManager::TG4ModelConfigurationManager | ( | const G4String & | name, |
const G4String & | availableModels = "" ) |
Standard constructor
Definition at line 43 of file TG4ModelConfigurationManager.cxx.
|
virtual |
Destructor
Definition at line 64 of file TG4ModelConfigurationManager.cxx.
|
private |
Not implemented.
void TG4ModelConfigurationManager::CreateRegions | ( | ) |
Create regions for all registered models
Definition at line 152 of file TG4ModelConfigurationManager.cxx.
Referenced by TG4GeometryManager::ConstructSDandField().
void TG4ModelConfigurationManager::SetModel | ( | const G4String & | modelName | ) |
Set an extra EM model with the given name.
Definition at line 227 of file TG4ModelConfigurationManager.cxx.
Referenced by TG4VUserFastSimulation::SetModel(), and TG4ModelConfigurationMessenger::SetNewValue().
void TG4ModelConfigurationManager::SetModelParticles | ( | const G4String & | modelName, |
const G4String & | particles ) |
Set particles for the physics model for given medium.
Definition at line 247 of file TG4ModelConfigurationManager.cxx.
Referenced by TG4VUserFastSimulation::SetModelParticles(), and TG4ModelConfigurationMessenger::SetNewValue().
void TG4ModelConfigurationManager::SetModelRegions | ( | const G4String & | modelName, |
const G4String & | regionsMedia ) |
Set regions for the physics model for given media.
Definition at line 268 of file TG4ModelConfigurationManager.cxx.
Referenced by TG4VUserFastSimulation::SetModelRegions(), and TG4ModelConfigurationMessenger::SetNewValue().
void TG4ModelConfigurationManager::SetOneModelRegion | ( | const G4String & | modelName, |
const G4String & | regionMedium ) |
Set regions for the physics model for the given medium.
Definition at line 289 of file TG4ModelConfigurationManager.cxx.
Referenced by TG4ModelConfigurationMessenger::SetNewValue().
|
inline |
Return the associated physics builder name
Definition at line 90 of file TG4ModelConfigurationManager.h.
Referenced by TG4ModelConfigurationMessenger::TG4ModelConfigurationMessenger().
|
inline |
Return the list of available models
Definition at line 96 of file TG4ModelConfigurationManager.h.
TG4ModelConfiguration * TG4ModelConfigurationManager::GetModelConfiguration | ( | const G4String & | modelName, |
G4bool | warn = true ) const |
Return the model configuration via specified model name; print warning if a configuration is not found
Definition at line 309 of file TG4ModelConfigurationManager.cxx.
Referenced by TG4VUserFastSimulation::Register(), SetModel(), SetModelParticles(), SetModelRegions(), and SetOneModelRegion().
|
inline |
Return the vector of registered model configurations
Definition at line 103 of file TG4ModelConfigurationManager.h.
Referenced by TG4EmModelPhysics::ConstructProcess(), TG4FastSimulationPhysics::ConstructProcess(), and TG4BiasingManager::CreateBiasingOperator().
|
protected |
Set the regions names (corresponding to material names) to model configurations. This conversion is needed to be consistent with regions defined with special cuts, which are defined per materiials.
Definition at line 81 of file TG4ModelConfigurationManager.cxx.
Referenced by TG4BiasingManager::CreateBiasingOperator(), and CreateRegions().
|
private |
Not implemented.
|
private |
Messenger.
messenger
Definition at line 73 of file TG4ModelConfigurationManager.h.
Referenced by TG4ModelConfigurationManager(), and ~TG4ModelConfigurationManager().
|
private |
The associated physics builder name.
Definition at line 76 of file TG4ModelConfigurationManager.h.
Referenced by GetName().
|
private |
List of available models.
Definition at line 79 of file TG4ModelConfigurationManager.h.
Referenced by GetAvailableModels().
|
private |
Vector of registered model configurations.
Definition at line 82 of file TG4ModelConfigurationManager.h.
Referenced by CreateRegions(), GetModelConfiguration(), GetVector(), SetModel(), SetRegionsNames(), and ~TG4ModelConfigurationManager().
|
private |
Info whether regions were constructed.
Definition at line 85 of file TG4ModelConfigurationManager.h.
Referenced by CreateRegions().