8#ifndef G4ATLASINTERFACES_IMAGFIELDSVC_H
9#define G4ATLASINTERFACES_IMAGFIELDSVC_H
12#include "GaudiKernel/IInterface.h"
36 virtual void getField(
const double *
xyz,
double *bxyz,
double *deriv =
nullptr)
const = 0;
42 virtual void getFieldZR(
const double *
xyz,
double *bxyz,
double *deriv =
nullptr)
const = 0;
bool solenoidOn() const
status of the magnets
float solenoidCurrent() const
void setToroidCurrent(float current)
virtual void getField(const double *xyz, double *bxyz, double *deriv=nullptr) const =0
get B field value at given position
void setSolenoidCurrent(float current)
DeclareInterfaceID(IMagFieldSvc, 1, 0)
Creates the InterfaceID and interfaceID() method.
float toroidCurrent() const
virtual void getFieldZR(const double *xyz, double *bxyz, double *deriv=nullptr) const =0
get B field value on the z-r plane at given position
IMagFieldSvc()
constructor
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)