9 #include <simulation/kernel/MagneticField.h>
10 #include <framework/geometry/BFieldManager.h>
12 #include <framework/gearbox/Unit.h>
14 #include <CLHEP/Units/SystemOfUnits.h>
23 namespace Simulation {
35 static const double pos_conversion{
Unit::mm / CLHEP::mm};
36 static const double mag_conversion{CLHEP::tesla /
Unit::T};
void GetXYZ(Double_t *carray) const
directly copies coordinates to an array of double
MagneticField()
Constructor.
~MagneticField()
Destructor.
void GetFieldValue(const G4double Point[3], G4double *Bfield) const
Sets the magnetic field vector for a specified space point.
static const double mm
[millimeters]
static const double T
[tesla]
static void getField(const double *pos, double *field)
return the magnetic field at a given position.
Abstract base class for different kinds of events.