Geant4 VMC Version 6.7
|
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 | SetModelExcludedParticles (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 |
![]() | |
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.
typedef std::vector<TG4ModelConfiguration*> TG4ModelConfigurationManager::ModelConfigurationVector |
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.
Referenced by operator=(), TG4BiasingManager::TG4BiasingManager(), and TG4ModelConfigurationManager().
|
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.
void TG4ModelConfigurationManager::SetModel | ( | const G4String & | modelName | ) |
Set an extra EM model with the given name.
Definition at line 227 of file TG4ModelConfigurationManager.cxx.
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.
void TG4ModelConfigurationManager::SetModelExcludedParticles | ( | const G4String & | modelName, |
const G4String & | particles ) |
Set particles for the physics model for given medium.
Definition at line 268 of file TG4ModelConfigurationManager.cxx.
void TG4ModelConfigurationManager::SetModelRegions | ( | const G4String & | modelName, |
const G4String & | regionsMedia ) |
Set regions for the physics model for given media.
Definition at line 289 of file TG4ModelConfigurationManager.cxx.
void TG4ModelConfigurationManager::SetOneModelRegion | ( | const G4String & | modelName, |
const G4String & | regionMedium ) |
Set regions for the physics model for the given medium.
Definition at line 310 of file TG4ModelConfigurationManager.cxx.
|
inline |
Return the associated physics builder name
Definition at line 91 of file TG4ModelConfigurationManager.h.
|
inline |
Return the list of available models
Definition at line 97 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 330 of file TG4ModelConfigurationManager.cxx.
Referenced by SetModel(), SetModelExcludedParticles(), SetModelParticles(), SetModelRegions(), and SetOneModelRegion().
|
inline |
Return the vector of registered model configurations
Definition at line 104 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 74 of file TG4ModelConfigurationManager.h.
Referenced by TG4ModelConfigurationManager(), and ~TG4ModelConfigurationManager().
|
private |
The associated physics builder name.
Definition at line 77 of file TG4ModelConfigurationManager.h.
Referenced by GetName(), and TG4ModelConfigurationManager().
|
private |
List of available models.
Definition at line 80 of file TG4ModelConfigurationManager.h.
Referenced by GetAvailableModels(), and TG4ModelConfigurationManager().
|
private |
Vector of registered model configurations.
Definition at line 83 of file TG4ModelConfigurationManager.h.
Referenced by CreateRegions(), GetModelConfiguration(), GetVector(), SetModel(), SetRegionsNames(), TG4ModelConfigurationManager(), and ~TG4ModelConfigurationManager().
|
private |
Info whether regions were constructed.
Definition at line 86 of file TG4ModelConfigurationManager.h.
Referenced by CreateRegions(), and TG4ModelConfigurationManager().