19#include "BDSFieldMagSkew.hh"
22#include "G4RotationMatrix.hh"
36BDSFieldMagSkew::~BDSFieldMagSkew()
43 const G4double t)
const
45 G4ThreeVector rotatedPosition(position);
46 rotatedPosition = rotatedPosition.transform(*
rotation);
47 G4ThreeVector normalField =
field->
GetField(rotatedPosition, t);
G4RotationMatrix * rotation
The rotation matrix used to rotate the coordinates.
G4RotationMatrix * antiRotation
The opposite rotation matrix used to transform the resultant field vector.
BDSFieldMagSkew()=delete
Private default constructor to force use of supplied ones.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const
Get the field - local coordinates, and rotated.
Interface for static magnetic fields that may or may not be local.
G4bool FiniteStrength() const
Accessor.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const =0
G4bool finiteStrength
Flag to cache whether finite nor not.