19#include "BDSDimensionType.hh"
20#include "BDSFieldMagInterpolated1D.hh"
21#include "BDSInterpolator1D.hh"
23#include "G4ThreeVector.hh"
25BDSFieldMagInterpolated1D::BDSFieldMagInterpolated1D(
BDSInterpolator1D* interpolatorIn,
26 const G4Transform3D& offset,
29 interpolator(interpolatorIn),
30 dimensionIndex((interpolatorIn->FirstDimension()).underlying()),
31 time((interpolatorIn->FirstDimension()).underlying() > 2)
34BDSFieldMagInterpolated1D::~BDSFieldMagInterpolated1D()
40 const G4double t)
const
42 G4double coordinate = 0;
const G4int dimensionIndex
Integer index to dimension to use.
BDSInterpolator1D * interpolator
Interpolator field is based on.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const
Return the interpolated field value at a given point.
const G4bool time
Cache of whether to use time coordinate.
Class to provide scaling and a base class pointer for interpolator fields.
Interface for all 1D interpolators.
G4ThreeVector GetInterpolatedValue(G4double x) const
Public interface to a 1D interpolator. Returns Geant4 type as that's what will be needed.