23#include "G4ElectricField.hh"
24#include "G4ThreeVector.hh"
25#include "G4Transform3D.hh"
46 explicit BDSFieldE(G4Transform3D transformIn);
51 virtual G4ThreeVector
GetField(
const G4ThreeVector& position,
52 const G4double t = 0)
const = 0;
63 G4double* field)
const;
67 const G4double t)
const;
74 virtual void SetTransform(
const G4Transform3D& transformIn);
Interface for BDSIM electric fields that may or may not be local.
G4Transform3D inverseTransform
The complimentary transform used to initially rotate the point of query.
BDSModulator * modulator
Optional modulator;.
virtual G4bool TimeVarying() const
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const =0
virtual G4ThreeVector GetFieldTransformed(const G4ThreeVector &position, const G4double t) const
Get the field value after applying transform for local offset.
virtual void GetFieldValue(const G4double point[4], G4double *field) const
G4bool finiteStrength
Flag to cache whether finite nor not.
G4bool FiniteStrength() const
Accessor.
G4Transform3D transform
Transform to apply for the field relative to the local coordinates of the geometry.
void SetModulator(BDSModulator *modulatorIn)
Set the optional modulator.
G4bool transformIsNotIdentity
Cache of whether to use transform at all.
virtual void SetTransform(const G4Transform3D &transformIn)
Base class for a modulator.