10#include <framework/dbobjects/MagneticFieldComponent.h> 
   11#include <framework/gearbox/Unit.h> 
   52    ROOT::Math::XYZVector 
getField(
const ROOT::Math::XYZVector& pos) 
const;
 
 
   69    ROOT::Math::XYZVector field;
 
   73        if (c->isExclusive()) 
return c->getField(pos);
 
   75        field += c->getField(pos);
 
 
Abstract base class for BField components.
MagneticField()
Empty Constructor.
std::vector< MagneticFieldComponent * > m_components
Magnetic field components to evaluate the field.
ClassDef(MagneticField, 1)
ROOT dictionary definition.
void addComponent(MagneticFieldComponent *component)
Add a new component to the magnetic field.
ROOT::Math::XYZVector getFieldInTesla(const ROOT::Math::XYZVector &pos) const
Convenience function to get the field directly in Tesla.
~MagneticField()
Delete all components.
MagneticField(MagneticField &&other) noexcept
But allow move construction.
MagneticField(const MagneticField &)=delete
Disallow copying the magnetic field.
static const double T
[tesla]
ROOT::Math::XYZVector getField(const ROOT::Math::XYZVector &pos) const
Calculate the magnetic field at a given position.
Abstract base class for different kinds of events.