Geant4 VMC Version 6.6
|
A helper class to hold a configuration of a special physics model. More...
#include <TG4ModelConfiguration.h>
Public Member Functions | |
TG4ModelConfiguration (const G4String &modelName) | |
void | Print () const |
void | SetParticles (const G4String &particles) |
void | SetRegionsMedia (const G4String ®ionsMedia) |
void | SetOneRegionMedium (const G4String ®ionMedium) |
void | SetOneRegion (const G4String ®ion) |
void | SetFastSimulationModel (G4VFastSimulationModel *fastSimulationModel) |
const G4String & | GetModelName () const |
const G4String & | GetParticles () const |
const std::vector< G4String > & | GetRegionsMedia () const |
const std::vector< G4String > & | GetRegions () const |
G4VFastSimulationModel * | GetFastSimulationModel () const |
G4bool | HasParticle (const G4String &particleName) |
G4bool | HasRegion (const G4String ®ionName) |
Private Member Functions | |
TG4ModelConfiguration (const TG4ModelConfiguration &right) | |
not implemented | |
TG4ModelConfiguration & | operator= (const TG4ModelConfiguration &right) |
not implemented | |
Private Attributes | |
G4String | fModelName |
the EM model name | |
G4String | fParticles |
the list of particle names | |
std::vector< G4String > | fRegionsMedia |
the vector of regions media | |
std::vector< G4String > | fRegions |
the vector of created regions (per materials) | |
G4VFastSimulationModel * | fFastSimulationModel |
fast simulation model | |
A helper class to hold a configuration of a special physics model.
The class holds the information about the association of the special physics model (EM physics or fast simulation model) and the applicable regions (G4Region) defined via tracking media and particles.
Definition at line 34 of file TG4ModelConfiguration.h.
TG4ModelConfiguration::TG4ModelConfiguration | ( | const G4String & | modelName | ) |
Standard constructor
Definition at line 51 of file TG4ModelConfiguration.cxx.
|
private |
not implemented
void TG4ModelConfiguration::Print | ( | ) | const |
Print all data
Definition at line 95 of file TG4ModelConfiguration.cxx.
|
inline |
Set the list of particles
Definition at line 76 of file TG4ModelConfiguration.h.
Referenced by TG4ModelConfigurationManager::SetModelParticles().
void TG4ModelConfiguration::SetRegionsMedia | ( | const G4String & | regionsMedia | ) |
Set the list of regions. Can be used only for region names that do not contain spaces, the names with spaces must be added individually.
Definition at line 62 of file TG4ModelConfiguration.cxx.
Referenced by TG4ModelConfigurationManager::SetModelRegions().
void TG4ModelConfiguration::SetOneRegionMedium | ( | const G4String & | regionMedium | ) |
Definition at line 81 of file TG4ModelConfiguration.cxx.
Referenced by TG4ModelConfigurationManager::SetOneModelRegion().
void TG4ModelConfiguration::SetOneRegion | ( | const G4String & | region | ) |
Definition at line 88 of file TG4ModelConfiguration.cxx.
|
inline |
Set fast simulation model
Definition at line 82 of file TG4ModelConfiguration.h.
Referenced by TG4VUserFastSimulation::Register().
|
inline |
Return the energy loss model name
Definition at line 89 of file TG4ModelConfiguration.h.
|
inline |
Return the list of particles
Definition at line 95 of file TG4ModelConfiguration.h.
Referenced by TG4BiasingManager::CreateBiasingOperator().
|
inline |
Return the list of regions
Definition at line 102 of file TG4ModelConfiguration.h.
|
inline |
Return the list of regions
Definition at line 108 of file TG4ModelConfiguration.h.
|
inline |
Return fast simulation model
Definition at line 115 of file TG4ModelConfiguration.h.
G4bool TG4ModelConfiguration::HasParticle | ( | const G4String & | particleName | ) |
Return true if given particle is in the particles list
Definition at line 110 of file TG4ModelConfiguration.cxx.
G4bool TG4ModelConfiguration::HasRegion | ( | const G4String & | regionName | ) |
Return true if given regionName is in the regions list
Definition at line 118 of file TG4ModelConfiguration.cxx.
Referenced by TG4BiasingManager::CreateBiasingOperator().
|
private |
not implemented
|
private |
the EM model name
Definition at line 66 of file TG4ModelConfiguration.h.
Referenced by GetModelName(), and Print().
|
private |
the list of particle names
Definition at line 67 of file TG4ModelConfiguration.h.
Referenced by GetParticles(), HasParticle(), Print(), and SetParticles().
|
private |
the vector of regions media
Definition at line 68 of file TG4ModelConfiguration.h.
Referenced by GetRegionsMedia(), Print(), SetOneRegionMedium(), and SetRegionsMedia().
|
private |
the vector of created regions (per materials)
Definition at line 70 of file TG4ModelConfiguration.h.
Referenced by GetRegions(), HasRegion(), Print(), and SetOneRegion().
|
private |
fast simulation model
Definition at line 71 of file TG4ModelConfiguration.h.
Referenced by GetFastSimulationModel(), and SetFastSimulationModel().