35#ifndef G4FIELDPARAMETERS_HH
36#define G4FIELDPARAMETERS_HH
222 inline static const G4double fgkDefaultMinimumStep = 0.01 * CLHEP::mm;
224 inline static const G4double fgkDefaultDeltaChord = 0.25 * CLHEP::mm;
226 inline static const G4double fgkDefaultDeltaOneStep = 0.01 * CLHEP::mm;
228 inline static const G4double fgkDefaultDeltaIntersection = 0.001 * CLHEP::mm;
230 inline static const G4double fgkDefaultMinimumEpsilonStep = 5.0e-5;
232 inline static const G4double fgkDefaultMaximumEpsilonStep = 0.001;
234 inline static const G4double fgkDefaultConstDistance = 0.;
245 G4double fMinimumStep = fgkDefaultMinimumStep;
247 G4double fDeltaChord = fgkDefaultDeltaChord;
249 G4double fDeltaOneStep = fgkDefaultDeltaOneStep;
251 G4double fDeltaIntersection = fgkDefaultDeltaIntersection;
253 G4double fMinimumEpsilonStep = fgkDefaultMinimumEpsilonStep;
255 G4double fMaximumEpsilonStep = fgkDefaultMaximumEpsilonStep;
273 G4double fConstDistance = fgkDefaultConstDistance;
287 fEquation = equation;
299 fMinimumStep = value;
311 fDeltaOneStep = value;
317 fDeltaIntersection = value;
323 fMinimumEpsilonStep = value;
329 fMaximumEpsilonStep = value;
335 fConstDistance = value;
362 return fUserEquation;
386 return fDeltaOneStep;
392 return fDeltaIntersection;
398 return fMinimumEpsilonStep;
404 return fMaximumEpsilonStep;
410 return fConstDistance;
@ kUserEquation
User defined equation of motion.
G4FieldType
The available fields in Geant4.
@ kElectroMagnetic
electromagnetic field
@ kMagnetic
magnetic field
@ 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.
Messenger class that defines commands for TG4DetConstruction.
void SetEquationType(G4EquationType equation)
Set Type of equation of motion of a particle in a field.
G4double GetDeltaIntersection() const
Get delta intersection in global field manager.
G4String GetVolumeName() const
void SetFieldType(G4FieldType field)
Set type of field.
void SetUserStepper(G4MagIntegratorStepper *stepper)
Set user defined integrator of particle's equation of motion.
G4double GetMinimumEpsilonStep() const
Get minimum epsilon step in global field manager.
G4double GetDeltaChord() const
Get delta chord in G4ChordFinder.
G4MagIntegratorStepper * GetUserStepper() const
Get user defined integrator of particle's equation of motion.
void SetUserEquationOfMotion(G4EquationOfMotion *equation)
Set user defined equation of motion.
void SetConstDistance(G4double value)
Set the distance within which the field is considered constant.
G4double GetMinimumStep() const
Get minimum step in G4ChordFinder.
void SetMinimumStep(G4double value)
Set minimum step in G4ChordFinder.
void SetStepperType(G4StepperType stepper)
Type of integrator of particle's equation of motion.
void SetMinimumEpsilonStep(G4double value)
Set minimum epsilon step in global field manager.
G4double GetConstDistance() const
Get the distance within which the field is considered constant.
static G4String EquationTypeName(G4EquationType equation)
Return the equation type as a string.
void PrintParameters() const
Prints all customizable accuracy parameters.
G4EquationOfMotion * GetUserEquationOfMotion() const
Get user defined equation of motion.
G4FieldParameters(const G4String &volumeName="")
Standard and default constructor.
G4double GetDeltaOneStep() const
Get delta one step in global field manager.
void SetDeltaOneStep(G4double value)
Set delta one step in global field manager.
void SetDeltaIntersection(G4double value)
Set delta intersection in global field manager.
G4double GetMaximumEpsilonStep() const
Get maximum epsilon step in global field manager.
G4FieldType GetFieldType() const
Get type of field.
static G4String StepperTypeName(G4StepperType stepper)
Return the stepper type as a string.
void SetDeltaChord(G4double value)
Set delta chord in G4ChordFinder.
static G4String FieldTypeName(G4FieldType field)
Return the field type as a string.
G4StepperType GetStepperType() const
Get rype of integrator of particle's equation of motion.
~G4FieldParameters()
Destructor.
void SetMaximumEpsilonStep(G4double value)
Set maximum epsilon step in global field manager.
G4EquationType GetEquationType() const
Get type of equation of motion of a particle in a field.