1#ifndef TG4_FIELD_PARAMETERS_H
2#define TG4_FIELD_PARAMETERS_H
18#include <G4MagneticField.hh>
24class G4MagIntegratorStepper;
@ kRKG3Stepper
G4RKG3_Stepper.
@ kHelixSimpleRunge
G4HelixSimpleRunge.
@ kNystromRK4
G4NystromRK4.
@ kDormandPrince745
G4DormandPrince745.
@ kCashKarpRKF45
G4CashKarpRKF45.
@ kDormandPrinceRK78
G4DormandPrinceRK78.
@ kSimpleRunge
G4SimpleRunge.
@ kHelixImplicitEuler
G4HelixImplicitEuler.
@ kUserStepper
User defined stepper.
@ kSimpleHeum
G4SimpleHeum.
@ kHelixExplicitEuler
G4HelixExplicitEuler.
@ kDormandPrinceRK56
G4DormandPrinceRK56.
@ kTsitourasRK45
G4TsitourasRK45.
@ kImplicitEuler
G4ImplicitEuler.
@ kExactHelixStepper
G4ExactHelixStepper.
@ kHelixMixedStepper
G4HelixMixedStepper.
@ kBogackiShampine45
G4BogackiShampine45.
@ kExplicitEuler
G4ExplicitEuler.
@ kBogackiShampine23
G4BogackiShampine23.
@ kClassicalRK4
G4ClassicalRK4.
@ kUserEquation
User defined equation of motion.
FieldType
The available fields in Geant4.
@ kElectroMagnetic
electromagnetic field
@ kMagnetic
magnetic field
Messenger class that defines commands for TG4DetConstruction.
The magnetic field parameters.
G4double GetMaximumEpsilonStep() const
Return maximum epsilon step in global field manager.
G4EquationOfMotion * GetUserEquationOfMotion() const
Return the user defined equation of motion.
G4double fStepMinimum
Minimum step in G4ChordFinder.
G4double GetMinimumEpsilonStep() const
Return minimum epsilon step in global field manager.
void SetEquationType(EquationType equation)
Set the type of equation of motion of a particle in a field.
G4double GetDeltaOneStep() const
Return delta one step in global field manager.
G4String fVolumeName
The name of associated volume, if local field.
void SetConstDistance(G4double value)
Set the distance within which the field is considered constant.
G4double GetDeltaIntersection() const
Return delta intersection in global field manager.
G4MagIntegratorStepper * fUserStepper
User defined integrator of particle's equation of motion.
static const G4double fgkDefaultDeltaChord
Default delta chord in G4ChordFinder.
static const G4double fgkDefaultMaximumEpsilonStep
Default maximum epsilon step in global field manager.
EquationType fEquation
Type of equation of motion of a particle in a field.
G4double fMaximumEpsilonStep
Maximum epsilon step in global field manager.
void SetUserEquationOfMotion(G4EquationOfMotion *equation)
void SetStepperType(StepperType stepper)
Set the type of integrator of particle's equation of motion.
G4EquationOfMotion * fUserEquation
User defined equation of motion.
G4double fDeltaChord
Delta chord in G4ChordFinder.
void SetIsMonopole(G4bool isMonopole)
G4double GetStepMinimum() const
Return minimum step in G4ChordFinder.
G4String GetVolumeName() const
Return the name of associated volume, if local field.
void SetMaximumEpsilonStep(G4double value)
Set maximum epsilon step in global field manager.
FieldType fField
Type of field.
static const G4double fgkDefaultDeltaIntersection
Delta intersection in global field manager.
static G4String EquationTypeName(EquationType equation)
G4double fMinimumEpsilonStep
Minimum epsilon step in global field manager.
void SetUserStepper(G4MagIntegratorStepper *stepper)
EquationType GetEquationType() const
Return the type of equation of motion of a particle in a field.
FieldType GetFieldType() const
Return the type of field.
void SetStepMinimum(G4double value)
Set minimum step in G4ChordFinder.
G4double fDeltaOneStep
Delta one step in global field manager.
TG4FieldParameters(const G4String &volumeName="")
static const G4double fgkDefaultStepMinimum
Default minimum step in G4ChordFinder.
void SetDeltaChord(G4double value)
Set delta chord in G4ChordFinder.
G4double GetDeltaChord() const
Return delta chord in G4ChordFinder.
G4double GetConstDistance() const
Return the distance within which the field is considered constant.
StepperType fStepper
Type of integrator of particle's equation of motion.
G4bool GetIsMonopole() const
static G4String StepperTypeName(StepperType stepper)
void SetDeltaIntersection(G4double value)
Set delta intersection in global field manager.
void SetFieldType(FieldType field)
Set type of field.
TG4FieldParametersMessenger * fMessenger
Messenger for this class.
StepperType GetStepperType() const
Return the type of integrator of particle's equation of motion.
static const G4double fgkDefaultConstDistance
Default constant distance.
G4double fConstDistance
The distance within which the field is considered constant.
void SetDeltaOneStep(G4double value)
Set delta one step in global field manager.
void SetMinimumEpsilonStep(G4double value)
Set minimum epsilon step in global field manager.
static G4String FieldTypeName(FieldType field)
void PrintParameters() const
G4MagIntegratorStepper * GetUserStepper() const
Return the user defined integrator of particle's equation of motion.
static const G4double fgkDefaultDeltaOneStep
Default delta one step in global field manager.
static const G4double fgkDefaultMinimumEpsilonStep
Default minimum epsilon step in global field manager.
G4double fDeltaIntersection
Delta intersection in global field manager.