23#include "G4ElectroMagneticField.hh"
24#include "G4ThreeVector.hh"
25#include "G4Transform3D.hh"
48 explicit BDSFieldEM(G4Transform3D transformIn);
53 virtual std::pair<G4ThreeVector,G4ThreeVector>
GetField(
const G4ThreeVector& position,
54 const G4double t = 0)
const = 0;
65 G4double* field)
const;
68 virtual std::pair<G4ThreeVector,G4ThreeVector>
GetFieldTransformed(
const G4ThreeVector& position,
69 const G4double t)
const;
76 virtual void SetTransform(
const G4Transform3D& transformIn);
Interface for BDSIM electro-magnetic fields that may or may not be local.
void SetModulator(BDSModulator *modulatorIn)
Set the optional modulator.
virtual G4bool TimeVarying() const
G4Transform3D inverseTransform
The complimentary transform used to initially rotate the point of query.
virtual void SetTransform(const G4Transform3D &transformIn)
G4bool transformIsNotIdentity
Cache of whether to use transform at all.
virtual std::pair< G4ThreeVector, G4ThreeVector > GetField(const G4ThreeVector &position, const G4double t=0) const =0
G4Transform3D transform
Transform to apply for the field relative to the local coordinates of the geometry.
BDSModulator * modulator
Optional modulator;.
virtual void GetFieldValue(const G4double point[4], G4double *field) const
virtual std::pair< G4ThreeVector, G4ThreeVector > GetFieldTransformed(const G4ThreeVector &position, const G4double t) const
Get the field value after applying transform for local offset.
G4bool FiniteStrength() const
Accessor.
virtual G4bool DoesFieldChangeEnergy() const
Required overload by Geant4.
G4bool finiteStrength
Flag to cache whether finite nor not.
Base class for a modulator.