Geant4 VMC Version 6.6
|
The magnetic field parameters. More...
#include <TG4FieldParameters.h>
Public Member Functions | |
TG4FieldParameters (const G4String &volumeName="") | |
~TG4FieldParameters () | |
void | PrintParameters () const |
void | SetFieldType (FieldType field) |
Set type of field. | |
void | SetEquationType (EquationType equation) |
Set the type of equation of motion of a particle in a field. | |
void | SetStepperType (StepperType stepper) |
Set the type of integrator of particle's equation of motion. | |
void | SetUserEquationOfMotion (G4EquationOfMotion *equation) |
void | SetUserStepper (G4MagIntegratorStepper *stepper) |
void | SetStepMinimum (G4double value) |
Set minimum step in G4ChordFinder. | |
void | SetDeltaChord (G4double value) |
Set delta chord in G4ChordFinder. | |
void | SetDeltaOneStep (G4double value) |
Set delta one step in global field manager. | |
void | SetDeltaIntersection (G4double value) |
Set delta intersection in global field manager. | |
void | SetMinimumEpsilonStep (G4double value) |
Set minimum epsilon step in global field manager. | |
void | SetMaximumEpsilonStep (G4double value) |
Set maximum epsilon step in global field manager. | |
void | SetConstDistance (G4double value) |
Set the distance within which the field is considered constant. | |
void | SetIsMonopole (G4bool isMonopole) |
G4String | GetVolumeName () const |
Return the name of associated volume, if local field. | |
FieldType | GetFieldType () const |
Return the type of field. | |
EquationType | GetEquationType () const |
Return the type of equation of motion of a particle in a field. | |
StepperType | GetStepperType () const |
Return the type of integrator of particle's equation of motion. | |
G4EquationOfMotion * | GetUserEquationOfMotion () const |
Return the user defined equation of motion. | |
G4MagIntegratorStepper * | GetUserStepper () const |
Return the user defined integrator of particle's equation of motion. | |
G4double | GetStepMinimum () const |
Return minimum step in G4ChordFinder. | |
G4double | GetDeltaChord () const |
Return delta chord in G4ChordFinder. | |
G4double | GetDeltaOneStep () const |
Return delta one step in global field manager. | |
G4double | GetDeltaIntersection () const |
Return delta intersection in global field manager. | |
G4double | GetMinimumEpsilonStep () const |
Return minimum epsilon step in global field manager. | |
G4double | GetMaximumEpsilonStep () const |
Return maximum epsilon step in global field manager. | |
G4double | GetConstDistance () const |
Return the distance within which the field is considered constant. | |
G4bool | GetIsMonopole () const |
Static Public Member Functions | |
static G4String | FieldTypeName (FieldType field) |
static G4String | EquationTypeName (EquationType equation) |
static G4String | StepperTypeName (StepperType stepper) |
static FieldType | GetFieldType (const G4String &name) |
static EquationType | GetEquationType (const G4String &name) |
static StepperType | GetStepperType (const G4String &name) |
Private Attributes | |
TG4FieldParametersMessenger * | fMessenger |
Messenger for this class. | |
G4String | fVolumeName |
The name of associated volume, if local field. | |
G4double | fStepMinimum |
Minimum step in G4ChordFinder. | |
G4double | fDeltaChord |
Delta chord in G4ChordFinder. | |
G4double | fDeltaOneStep |
Delta one step in global field manager. | |
G4double | fDeltaIntersection |
Delta intersection in global field manager. | |
G4double | fMinimumEpsilonStep |
Minimum epsilon step in global field manager. | |
G4double | fMaximumEpsilonStep |
Maximum epsilon step in global field manager. | |
FieldType | fField |
Type of field. | |
EquationType | fEquation |
Type of equation of motion of a particle in a field. | |
StepperType | fStepper |
Type of integrator of particle's equation of motion. | |
G4EquationOfMotion * | fUserEquation |
User defined equation of motion. | |
G4MagIntegratorStepper * | fUserStepper |
User defined integrator of particle's equation of motion. | |
G4double | fConstDistance |
The distance within which the field is considered constant. | |
G4bool | fIsMonopole |
Static Private Attributes | |
static const G4double | fgkDefaultStepMinimum = 0.01 * mm |
Default minimum step in G4ChordFinder. | |
static const G4double | fgkDefaultDeltaChord = 0.25 * mm |
Default delta chord in G4ChordFinder. | |
static const G4double | fgkDefaultDeltaOneStep = 0.01 * mm |
Default delta one step in global field manager. | |
static const G4double | fgkDefaultDeltaIntersection = 0.001 * mm |
Delta intersection in global field manager. | |
static const G4double | fgkDefaultMinimumEpsilonStep = 5.0e-5 |
Default minimum epsilon step in global field manager. | |
static const G4double | fgkDefaultMaximumEpsilonStep = 0.001 |
Default maximum epsilon step in global field manager. | |
static const G4double | fgkDefaultConstDistance = 0. |
Default constant distance. | |
The magnetic field parameters.
The class defines the type of equation of motion of a particle in a field and the integration method, as well as other accuracy parameters.
The default values correspond to the defaults set in Geant4 (taken from Geant4 9.3 release.) As Geant4 classes to not provide access methods for these defaults, the defaults have to be checked with each new Geant4 release.
Definition at line 106 of file TG4FieldParameters.h.
TG4FieldParameters::TG4FieldParameters | ( | const G4String & | volumeName = "" | ) |
Default constructor
Definition at line 217 of file TG4FieldParameters.cxx.
TG4FieldParameters::~TG4FieldParameters | ( | ) |
Destructor
Definition at line 240 of file TG4FieldParameters.cxx.
void TG4FieldParameters::PrintParameters | ( | ) | const |
Prints all customizable accuracy parameters
Definition at line 252 of file TG4FieldParameters.cxx.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
static |
Return the field type as a string
Definition at line 40 of file TG4FieldParameters.cxx.
Referenced by TG4GeometryManager::CreateField(), GetFieldType(), PrintParameters(), TG4FieldParametersMessenger::SetNewValue(), and TG4FieldParametersMessenger::TG4FieldParametersMessenger().
|
static |
Return the equation type as a string
Definition at line 59 of file TG4FieldParameters.cxx.
Referenced by GetEquationType(), PrintParameters(), TG4FieldParametersMessenger::SetNewValue(), and TG4FieldParametersMessenger::TG4FieldParametersMessenger().
|
static |
Return the stepper type as a string
Definition at line 84 of file TG4FieldParameters.cxx.
Referenced by TG4GeometryManager::CreateField(), GetStepperType(), PrintParameters(), TG4FieldParametersMessenger::SetNewValue(), and TG4FieldParametersMessenger::TG4FieldParametersMessenger().
|
static |
Return the field type for given field type name
Definition at line 147 of file TG4FieldParameters.cxx.
Referenced by TG4GeometryManager::CreateField(), TG4Field::CreateG4Field(), and TG4Field::Update().
|
static |
Return the equation type for given equation type name
Definition at line 161 of file TG4FieldParameters.cxx.
Referenced by TG4Field::Update().
|
static |
Return the stepper type for given stepper type name
Definition at line 178 of file TG4FieldParameters.cxx.
Referenced by TG4GeometryManager::CreateField(), and TG4Field::Update().
|
inline |
Set type of field.
Definition at line 221 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set the type of equation of motion of a particle in a field.
Definition at line 227 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set the type of integrator of particle's equation of motion.
Definition at line 233 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
void TG4FieldParameters::SetUserEquationOfMotion | ( | G4EquationOfMotion * | equation | ) |
Set user defined equation of motion
Definition at line 274 of file TG4FieldParameters.cxx.
Referenced by TG4GeometryManager::SetUserEquationOfMotion().
void TG4FieldParameters::SetUserStepper | ( | G4MagIntegratorStepper * | stepper | ) |
Set user defined integrator of particle's equation of motion
Definition at line 283 of file TG4FieldParameters.cxx.
Referenced by TG4GeometryManager::SetUserStepper().
|
inline |
Set minimum step in G4ChordFinder.
Definition at line 239 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set delta chord in G4ChordFinder.
Definition at line 245 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set delta one step in global field manager.
Definition at line 251 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set delta intersection in global field manager.
Definition at line 257 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set minimum epsilon step in global field manager.
Definition at line 263 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set maximum epsilon step in global field manager.
Definition at line 269 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set the distance within which the field is considered constant.
Definition at line 275 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Set the option to create an extra monopole field integrator which will be activated directly by G4MonopoleTransportation
Definition at line 282 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::SetNewValue().
|
inline |
Return the name of associated volume, if local field.
Definition at line 288 of file TG4FieldParameters.h.
Referenced by TG4FieldParametersMessenger::TG4FieldParametersMessenger().
|
inline |
Return the type of field.
Definition at line 294 of file TG4FieldParameters.h.
|
inline |
Return the type of equation of motion of a particle in a field.
Definition at line 297 of file TG4FieldParameters.h.
|
inline |
Return the type of integrator of particle's equation of motion.
Definition at line 303 of file TG4FieldParameters.h.
|
inline |
Return the user defined equation of motion.
Definition at line 309 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return the user defined integrator of particle's equation of motion.
Definition at line 315 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return minimum step in G4ChordFinder.
Definition at line 321 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return delta chord in G4ChordFinder.
Definition at line 327 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return delta one step in global field manager.
Definition at line 333 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return delta intersection in global field manager.
Definition at line 339 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return minimum epsilon step in global field manager.
Definition at line 345 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return maximum epsilon step in global field manager.
Definition at line 351 of file TG4FieldParameters.h.
Referenced by TG4Field::Update().
|
inline |
Return the distance within which the field is considered constant.
Definition at line 357 of file TG4FieldParameters.h.
Referenced by TG4GeometryManager::CreateField(), and TG4Field::CreateG4Field().
|
inline |
Return the option to create an extra monopole field integrator which will be activated directly by G4MonopoleTransportation
Definition at line 364 of file TG4FieldParameters.h.
|
staticprivate |
Default minimum step in G4ChordFinder.
Definition at line 160 of file TG4FieldParameters.h.
|
staticprivate |
Default delta chord in G4ChordFinder.
Definition at line 162 of file TG4FieldParameters.h.
|
staticprivate |
Default delta one step in global field manager.
Definition at line 164 of file TG4FieldParameters.h.
|
staticprivate |
Delta intersection in global field manager.
Definition at line 166 of file TG4FieldParameters.h.
|
staticprivate |
Default minimum epsilon step in global field manager.
Definition at line 168 of file TG4FieldParameters.h.
|
staticprivate |
Default maximum epsilon step in global field manager.
Definition at line 170 of file TG4FieldParameters.h.
|
staticprivate |
Default constant distance.
Definition at line 172 of file TG4FieldParameters.h.
|
private |
Messenger for this class.
Definition at line 177 of file TG4FieldParameters.h.
Referenced by TG4FieldParameters(), and ~TG4FieldParameters().
|
private |
The name of associated volume, if local field.
Definition at line 180 of file TG4FieldParameters.h.
Referenced by GetVolumeName(), and PrintParameters().
|
private |
Minimum step in G4ChordFinder.
Definition at line 183 of file TG4FieldParameters.h.
Referenced by GetStepMinimum(), PrintParameters(), and SetStepMinimum().
|
private |
Delta chord in G4ChordFinder.
Definition at line 185 of file TG4FieldParameters.h.
Referenced by GetDeltaChord(), PrintParameters(), and SetDeltaChord().
|
private |
Delta one step in global field manager.
Definition at line 187 of file TG4FieldParameters.h.
Referenced by GetDeltaOneStep(), PrintParameters(), and SetDeltaOneStep().
|
private |
Delta intersection in global field manager.
Definition at line 189 of file TG4FieldParameters.h.
Referenced by GetDeltaIntersection(), PrintParameters(), and SetDeltaIntersection().
|
private |
Minimum epsilon step in global field manager.
Definition at line 191 of file TG4FieldParameters.h.
Referenced by GetMinimumEpsilonStep(), PrintParameters(), and SetMinimumEpsilonStep().
|
private |
Maximum epsilon step in global field manager.
Definition at line 193 of file TG4FieldParameters.h.
Referenced by GetMaximumEpsilonStep(), PrintParameters(), and SetMaximumEpsilonStep().
|
private |
Type of field.
Definition at line 196 of file TG4FieldParameters.h.
Referenced by GetFieldType(), PrintParameters(), and SetFieldType().
|
private |
Type of equation of motion of a particle in a field.
Definition at line 199 of file TG4FieldParameters.h.
Referenced by GetEquationType(), PrintParameters(), SetEquationType(), and SetUserEquationOfMotion().
|
private |
Type of integrator of particle's equation of motion.
Definition at line 202 of file TG4FieldParameters.h.
Referenced by GetStepperType(), PrintParameters(), SetStepperType(), and SetUserStepper().
|
private |
User defined equation of motion.
Definition at line 205 of file TG4FieldParameters.h.
Referenced by GetUserEquationOfMotion(), and SetUserEquationOfMotion().
|
private |
User defined integrator of particle's equation of motion.
Definition at line 208 of file TG4FieldParameters.h.
Referenced by GetUserStepper(), and SetUserStepper().
|
private |
The distance within which the field is considered constant.
Definition at line 211 of file TG4FieldParameters.h.
Referenced by GetConstDistance(), PrintParameters(), and SetConstDistance().
|
private |
An option to create an extra monopole field integrator which will be activated directly by G4MonopoleTransportation
Definition at line 215 of file TG4FieldParameters.h.
Referenced by GetIsMonopole(), PrintParameters(), and SetIsMonopole().