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};
38 const ROOT::Math::XYZVector point = ROOT::Math::XYZVector(Point[0], Point[1], Point[2]) * pos_conversion;
42 magField.GetCoordinates(Bfield);
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.