18 #include "CLHEP/Units/SystemOfUnits.h"
20 using namespace DD4hep::Simulation;
29 double p[3] = {pos[0]*fac1, pos[1]*fac1, pos[2]*fac1};
30 field[0] = field[1] = field[2] = 0.0;
virtual G4bool DoesFieldChangeEnergy() const
Does field change energy ?
bool changesEnergy() const
Does the field change the energy of charged particles?
void magneticField(const Position &pos, Direction &field) const
Returns the 3 magnetic field components (x, y, z).
virtual void GetFieldValue(const double pos[4], double *arr) const
Access field values at a given point.
static const double tesla
Geometry::OverlayedField m_field
Reference to the detector description field.