15 #ifndef DD4HEP_DDG4_GEANT4FIELD_H
16 #define DD4HEP_DDG4_GEANT4FIELD_H
22 #include "G4ElectroMagneticField.hh"
23 #include "G4MagneticField.hh"
29 namespace Simulation {
54 virtual void GetFieldValue(
const double pos[4],
double *arr)
const;
61 #endif // DD4HEP_DDG4_GEANT4FIELD_H
virtual G4bool DoesFieldChangeEnergy() const
Does field change energy ?
Mediator class to allow Geant4 accessing magnetic fields defined in DD4hep.
virtual ~Geant4Field()
Standard destructor.
Class describing a field overlay with several sources.
virtual void GetFieldValue(const double pos[4], double *arr) const
Access field values at a given point.
Geant4Field(Geometry::OverlayedField field)
Constructor. The sensitive detector element is identified by the detector name.
Geometry::OverlayedField m_field
Reference to the detector description field.
Class of the Geant4 toolkit. See http://www-geant4.kek.jp/Reference.