20#include "BDSFieldMag.hh"
21#include "BDSFieldMagGlobal.hh"
24#include "G4ThreeVector.hh"
26BDSFieldMagGlobal::BDSFieldMagGlobal(
BDSFieldMag* fieldIn):
29 finiteStrength = field->FiniteStrength();
32BDSFieldMagGlobal::~BDSFieldMagGlobal()
38 const G4double t)
const
41 {
return G4ThreeVector();}
47 const G4double t)
const
G4ThreeVector ConvertAxisToGlobal(const G4ThreeVector &localAxis, const G4bool useCurvilinear=true) const
BDSStep ConvertToLocal(G4Step const *const step, G4bool useCurvilinear=true) const
BDSFieldMag * field
The field on which this is based.
virtual G4ThreeVector GetFieldTransformed(const G4ThreeVector &position, const G4double t) const
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const
Interface for static magnetic fields that may or may not be local.
virtual G4ThreeVector GetFieldTransformed(const G4ThreeVector &position, const G4double t) const
Get the field value after applying transform for local offset.
G4bool finiteStrength
Flag to cache whether finite nor not.