18#include "BDSDimensionType.hh"
19#include "BDSFieldMagInterpolated1D.hh"
20#include "BDSInterpolator1D.hh"
22#include "G4ThreeVector.hh"
24BDSFieldMagInterpolated1D::BDSFieldMagInterpolated1D(
BDSInterpolator1D* interpolatorIn,
25 const G4Transform3D& offset,
28 interpolator(interpolatorIn),
29 dimensionIndex((interpolatorIn->FirstDimension()).underlying()),
30 time((interpolatorIn->FirstDimension()).underlying() > 2)
33BDSFieldMagInterpolated1D::~BDSFieldMagInterpolated1D()
39 const G4double t)
const
41 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.