Geant4 VMC Version 6.6
|
The class for constructing magnetic, electromagnetic and gravity fields which strength is defined via TVirtualMagField. More...
#include <TG4Field.h>
Public Member Functions | |
TG4Field (const TG4FieldParameters ¶meters, TVirtualMagField *magField, G4LogicalVolume *lv=0) | |
~TG4Field () | |
void | Update (const TG4FieldParameters ¶meters) |
G4Field * | GetG4Field () const |
G4EquationOfMotion * | GetEquation () const |
G4MagIntegratorStepper * | GetStepper () const |
G4VIntegrationDriver * | GetIntegrationDriver () const |
Private Member Functions | |
G4Field * | CreateG4Field (const TG4FieldParameters ¶meters, TVirtualMagField *magField) |
G4EquationOfMotion * | CreateEquation (EquationType equation) |
G4MagIntegratorStepper * | CreateStepper (G4EquationOfMotion *equation, StepperType stepper) |
G4VIntegrationDriver * | CreateFSALStepperAndDriver (G4EquationOfMotion *equation, StepperType stepper, G4double minStep) |
Private Attributes | |
G4Field * | fG4Field |
Geant4 field. | |
TVirtualMagField * | fVirtualMagField |
The associated TGeo magnetic field. | |
G4LogicalVolume * | fLogicalVolume |
The associated volume (if local field) | |
G4EquationOfMotion * | fEquation |
The equation of motion. | |
G4MagIntegratorStepper * | fStepper |
The magnetic integrator stepper. | |
G4VIntegrationDriver * | fDriver |
The magnetic integrator driver. | |
G4ChordFinder * | fChordFinder |
Chord finder. | |
The class for constructing magnetic, electromagnetic and gravity fields which strength is defined via TVirtualMagField.
The equation of motion motion of a particle in a field and the integration method is set according to the selection in TG4FieldParameters, as well as other accuracy parameters. The default values in TG4FieldParameters correspond to 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 47 of file TG4Field.h.
TG4Field::TG4Field | ( | const TG4FieldParameters & | parameters, |
TVirtualMagField * | magField, | ||
G4LogicalVolume * | lv = 0 ) |
Default constructor
Definition at line 68 of file TG4Field.cxx.
TG4Field::~TG4Field | ( | ) |
Destructor
Definition at line 89 of file TG4Field.cxx.
void TG4Field::Update | ( | const TG4FieldParameters & | parameters | ) |
Update field with new field parameters
Definition at line 322 of file TG4Field.cxx.
Referenced by TG4Field().
|
inline |
Return the instantiated field
Definition at line 91 of file TG4Field.h.
Referenced by TG4GeometryManager::ConstructGlobalField().
|
inline |
Return the equation of motion
Definition at line 97 of file TG4Field.h.
Referenced by TG4GeometryManager::ConstructGlobalField().
|
inline |
Return the magnetic integrator stepper
Definition at line 103 of file TG4Field.h.
Referenced by TG4GeometryManager::ConstructGlobalField().
G4VIntegrationDriver * TG4Field::GetIntegrationDriver | ( | ) | const |
|
private |
Create magnetic, electromagnetic or garvity field according to the provided field type
Definition at line 101 of file TG4Field.cxx.
Referenced by Update().
|
private |
Set the equation of motion of a particle in a field
Definition at line 126 of file TG4Field.cxx.
Referenced by Update().
|
private |
Set the integrator of particle's equation of motion
Definition at line 183 of file TG4Field.cxx.
Referenced by Update().
|
private |
Set the FSAL integrator of particle's equation of motion
Definition at line 292 of file TG4Field.cxx.
Referenced by Update().
|
private |
Geant4 field.
Definition at line 74 of file TG4Field.h.
Referenced by CreateEquation(), CreateG4Field(), GetG4Field(), and Update().
|
private |
The associated TGeo magnetic field.
Definition at line 76 of file TG4Field.h.
Referenced by Update().
|
private |
The associated volume (if local field)
Definition at line 78 of file TG4Field.h.
Referenced by Update().
|
private |
The equation of motion.
Definition at line 80 of file TG4Field.h.
Referenced by GetEquation(), and Update().
|
private |
The magnetic integrator stepper.
Definition at line 82 of file TG4Field.h.
Referenced by GetStepper(), Update(), and ~TG4Field().
|
private |
|
private |