19#ifndef BDSFIELDEMINTERPOLATED2D_H
20#define BDSFIELDEMINTERPOLATED2D_H
21#include "BDSFieldEMInterpolated.hh"
23#include "G4ThreeVector.hh"
24#include "G4Transform3D.hh"
48 const G4Transform3D& offset = G4Transform3D::Identity,
49 G4double eScalingIn = 1.0,
50 G4double bScalingIn = 1.0);
55 virtual std::pair<G4ThreeVector,G4ThreeVector>
GetField(
const G4ThreeVector& position,
56 const G4double t = 0)
const;
A 2D field from an interpolated array with any interpolation.
const G4int eFirstDimensionIndex
Integer index to dimension to use.
BDSInterpolator2D * eInterpolator
E Interpolator the field is based on.
const G4bool bFirstTime
Cache of whether to use time coordinate.
const G4bool bSecondTime
Cache of whether to use time coordinate.
const G4int eSecondDimensionIndex
Integer index to dimension to use.
BDSInterpolator2D * bInterpolator
B Interpolator the field is based on.
const G4bool eSecondTime
Cache of whether to use time coordinate.
const G4int bSecondDimensionIndex
Integer index to dimension to use.
virtual std::pair< G4ThreeVector, G4ThreeVector > GetField(const G4ThreeVector &position, const G4double t=0) const
Return the interpolated field value at a given point.
const G4bool eFirstTime
Cache of whether to use time coordinate.
const G4int bFirstDimensionIndex
Integer index to dimension to use.
Class to provide scaling and a base class pointer for interpolator fields.
Interface for all 2D interpolators.