19#include "BDSFieldE.hh"
20#include "BDSFieldEGlobalPlacement.hh"
23#include "G4ThreeVector.hh"
25BDSFieldEGlobalPlacement::BDSFieldEGlobalPlacement(
BDSFieldE* fieldIn):
28 finiteStrength = field->FiniteStrength();
31BDSFieldEGlobalPlacement::~BDSFieldEGlobalPlacement()
37 const G4double t)
const
40 {
return G4ThreeVector();}
46 const G4double t)
const
48 G4bool foundAPlacementVolume =
false;
49 G4ThreeVector localPosition =
ConvertToLocal(position, foundAPlacementVolume);
50 if (!foundAPlacementVolume)
51 {
return G4ThreeVector();}
G4ThreeVector GetField(const G4ThreeVector &position, const G4double t) const
BDSFieldE * field
The field on which this is based.
virtual G4ThreeVector GetFieldTransformed(const G4ThreeVector &position, const G4double t) const
Interface for BDSIM electric 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.
G4ThreeVector ConvertToLocal(const G4ThreeVector &globalPosition, G4bool &foundAPlacementVolume) const
G4ThreeVector ConvertAxisToGlobal(const G4ThreeVector &localAxis) const