Geant4 VMC Version 6.6
|
Vector of control process values with convenient set/get methods. More...
#include <TG4G3ControlVector.h>
Public Types | |
typedef std::vector< TG4G3ControlValue > | TG4ControlValueVector |
The vector of TG4G3ControlValue. | |
Public Member Functions | |
TG4G3ControlVector () | |
TG4G3ControlVector (const TG4G3ControlVector &right) | |
~TG4G3ControlVector () | |
TG4G3ControlVector & | operator= (const TG4G3ControlVector &right) |
TG4G3ControlValue | operator[] (G4int index) const |
G4bool | SetControl (TG4G3Control control, TG4G3ControlValue controlValue, TG4G3CutVector &cuts) |
void | SetG3Defaults () |
G4bool | Update (const TG4G3ControlVector &vector) |
G4String | Format () const |
void | Print () const |
TG4G3ControlValue | GetControlValue (G4VProcess *process) const |
TG4G3ControlValue | GetControlValue (TG4G3Control control) const |
G4bool | IsControl () const |
Static Public Member Functions | |
static TG4G3Control | GetControl (const G4String &controlName) |
static const G4String & | GetControlName (TG4G3Control control) |
static TG4G3ControlValue | GetControlValue (G4int value, TG4G3Control control) |
static TG4G3ControlValue | GetControlValue (G4double value, TG4G3Control control) |
Static Private Member Functions | |
static void | FillControlNameVector () |
Private Attributes | |
TG4ControlValueVector | fControlVector |
vector of control process values | |
Static Private Attributes | |
static TG4StringVector | fgControlNameVector |
vector of control parameters names | |
Vector of control process values with convenient set/get methods.
Definition at line 32 of file TG4G3ControlVector.h.
The vector of TG4G3ControlValue.
Definition at line 36 of file TG4G3ControlVector.h.
TG4G3ControlVector::TG4G3ControlVector | ( | ) |
Default constructor
Definition at line 34 of file TG4G3ControlVector.cxx.
TG4G3ControlVector::TG4G3ControlVector | ( | const TG4G3ControlVector & | right | ) |
Copy constructor
Definition at line 47 of file TG4G3ControlVector.cxx.
TG4G3ControlVector::~TG4G3ControlVector | ( | ) |
Destructor
Definition at line 57 of file TG4G3ControlVector.cxx.
TG4G3ControlVector & TG4G3ControlVector::operator= | ( | const TG4G3ControlVector & | right | ) |
Assignment operator
Definition at line 67 of file TG4G3ControlVector.cxx.
TG4G3ControlValue TG4G3ControlVector::operator[] | ( | G4int | index | ) | const |
Element access operator
Definition at line 83 of file TG4G3ControlVector.cxx.
|
static |
Retrieve corresponding TG4G3Control constant from the controlName.
Definition at line 129 of file TG4G3ControlVector.cxx.
Referenced by TG4G3PhysicsManager::CheckControlWithTheVector(), TG4GeometryServices::PrintControls(), and TG4PhysicsManager::SetProcess().
|
static |
Return name of a specified cut.
Definition at line 170 of file TG4G3ControlVector.cxx.
Referenced by TG4ProcessMap::GetControlName(), and TG4ProcessMap::PrintAll().
|
static |
Conversion G4int -> G3ControlValue, special treatment for LOSS values 3,4,5.
Definition at line 182 of file TG4G3ControlVector.cxx.
Referenced by TG4G3PhysicsManager::CheckControlWithTheVector(), TG4Limits::GetControl(), GetControlValue(), SetControl(), TG4PhysicsManager::SetProcess(), and TG4PhysicsManager::SetSpecialControlsActivation().
|
static |
Conversion G4double -> G3ControlValue
Definition at line 215 of file TG4G3ControlVector.cxx.
G4bool TG4G3ControlVector::SetControl | ( | TG4G3Control | control, |
TG4G3ControlValue | controlValue, | ||
TG4G3CutVector & | cuts ) |
Set the controlValue for the specified process control. Modify cuts if necessary. Return true if the control value was set.
Definition at line 224 of file TG4G3ControlVector.cxx.
Referenced by SetControl(), TG4Limits::SetG3Control(), TG4G3PhysicsManager::SetProcess(), and TG4G3Defaults::TG4G3Defaults().
void TG4G3ControlVector::SetG3Defaults | ( | ) |
Set G3 default values for all controls.
Definition at line 251 of file TG4G3ControlVector.cxx.
Referenced by TG4G3PhysicsManager::SetG3DefaultControls(), and TG4Limits::SetG3DefaultControls().
G4bool TG4G3ControlVector::Update | ( | const TG4G3ControlVector & | vector | ) |
Unset value of DRAY (this information was passed to cut vector.) Reset value of LOSS (the special controls process operates only with activate/inactivate options.) Return true if some value was modified.
Definition at line 260 of file TG4G3ControlVector.cxx.
Referenced by TG4Limits::Initialize(), and TG4Limits::Update().
G4String TG4G3ControlVector::Format | ( | ) | const |
Format the output into a string.
Definition at line 297 of file TG4G3ControlVector.cxx.
Referenced by Print().
void TG4G3ControlVector::Print | ( | ) | const |
Print the controls.
Definition at line 318 of file TG4G3ControlVector.cxx.
Referenced by TG4Limits::Print(), and TG4ComposedPhysicsMessenger::SetNewValue().
TG4G3ControlValue TG4G3ControlVector::GetControlValue | ( | G4VProcess * | process | ) | const |
Return the control value for the particle associated with the specified process.
Definition at line 326 of file TG4G3ControlVector.cxx.
TG4G3ControlValue TG4G3ControlVector::GetControlValue | ( | TG4G3Control | control | ) | const |
Return the control value for the particle associated with the specified process.
Definition at line 337 of file TG4G3ControlVector.cxx.
G4bool TG4G3ControlVector::IsControl | ( | ) | const |
Return true if any of controls is set.
Definition at line 347 of file TG4G3ControlVector.cxx.
Referenced by TG4Limits::Initialize(), and TG4Limits::Update().
|
staticprivate |
Define fControlNameVector.
Definition at line 101 of file TG4G3ControlVector.cxx.
Referenced by GetControlName(), and TG4G3ControlVector().
|
staticprivate |
vector of control parameters names
Definition at line 77 of file TG4G3ControlVector.h.
Referenced by FillControlNameVector(), Format(), GetControl(), GetControlName(), and TG4G3ControlVector().
|
private |
vector of control process values
Definition at line 83 of file TG4G3ControlVector.h.
Referenced by Format(), GetControlValue(), GetControlValue(), IsControl(), operator=(), operator[](), SetControl(), SetG3Defaults(), TG4G3ControlVector(), and Update().