|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
17 #include <CLHEP/Units/SystemOfUnits.h>
27 static const double fac1 = units::mm/CLHEP::mm;
28 static const double fac2 = CLHEP::tesla/units::tesla;
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 override
Does field change energy ?
OverlayedField m_field
Reference to the detector description field.
virtual void GetFieldValue(const double pos[4], double *arr) const override
Access field values at a given point.
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
Namespace for the AIDA detector description toolkit.
bool changesEnergy() const
Does the field change the energy of charged particles?
void magneticField(const Position &pos, double *field) const
Returns the 3 magnetic field components (x, y, z).