1#ifndef TG4_CACHED_MAGNETIC_FIELD_H
2#define TG4_CACHED_MAGNETIC_FIELD_H
21#include <G4ThreeVector.hh>
27class G4MagIntegratorStepper;
30class TVirtualMagField;
51 virtual void GetFieldValue(
const G4double point[3], G4double* bfield)
const;
Definition of the TG4FieldParameters class.
Definition of the TG4MagneticField class.
The cached magnetic field defined by the TVirtualMCApplication field map.
virtual ~TG4CachedMagneticField()
virtual void PrintStatistics() const
G4ThreeVector fLastValue
The last evaluated value.
G4int fEvaluationsCounter
The counter of field value evaluations in GetFieldValue()
void SetConstDistance(G4double value)
virtual void GetFieldValue(const G4double point[3], G4double *bfield) const
G4double fConstDistanceSquare
The square of the distance within which the field is considered constant.
G4int fCallsCounter
The counter of calls to GetFieldValue()
G4ThreeVector fLastLocation
The last evaluated location.
TG4CachedMagneticField(TVirtualMagField *magField, G4double constDistance)
The magnetic field parameters.
The magnetic field defined via TVirtualMagField.