|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Class to provide scaling and a base class pointer for interpolator fields. More...
#include <BDSFieldEMInterpolated.hh>


Public Member Functions | |
| BDSFieldEMInterpolated (const BDSInterpolator *eInterpolator, const BDSInterpolator *bInterpolator, const G4Transform3D &offset, G4double eScalingIn=1.0, G4double bScalingIn=1.0) | |
| virtual G4bool | TimeVarying () const |
| G4double | SmallestSpatialStep () const |
| G4double | EScaling () const |
| Accessor. | |
| G4double | BScaling () const |
| Accessor. | |
| void | SetEScaling (G4double eScalingIn) |
| Setter. | |
| void | SetBScaling (G4double bScalingIn) |
| Setter. | |
Public Member Functions inherited from BDSFieldEM | |
| BDSFieldEM () | |
| BDSFieldEM (G4Transform3D transformIn) | |
| virtual std::pair< G4ThreeVector, G4ThreeVector > | GetField (const G4ThreeVector &position, const G4double t=0) const =0 |
| virtual void | GetFieldValue (const G4double point[4], G4double *field) const |
| virtual std::pair< G4ThreeVector, G4ThreeVector > | GetFieldTransformed (const G4ThreeVector &position, const G4double t) const |
| Get the field value after applying transform for local offset. | |
| virtual void | SetTransform (const G4Transform3D &transformIn) |
| virtual G4bool | DoesFieldChangeEnergy () const |
| Required overload by Geant4. | |
| void | SetModulator (BDSModulator *modulatorIn) |
| Set the optional modulator. | |
| G4bool | FiniteStrength () const |
| Accessor. | |
Protected Attributes | |
| G4bool | timeVarying |
Protected Attributes inherited from BDSFieldEM | |
| G4bool | finiteStrength |
| Flag to cache whether finite nor not. | |
| G4Transform3D | transform |
| Transform to apply for the field relative to the local coordinates of the geometry. | |
| G4bool | transformIsNotIdentity |
| Cache of whether to use transform at all. | |
| BDSModulator * | modulator |
| Optional modulator;. | |
Private Attributes | |
| G4double | eScaling |
| E field scaling value. | |
| G4double | bScaling |
| B field scaling value. | |
| G4double | smallestSpatialStep |
Class to provide scaling and a base class pointer for interpolator fields.
Definition at line 34 of file BDSFieldEMInterpolated.hh.
| BDSFieldEMInterpolated::BDSFieldEMInterpolated | ( | const BDSInterpolator * | eInterpolator, |
| const BDSInterpolator * | bInterpolator, | ||
| const G4Transform3D & | offset, | ||
| G4double | eScalingIn = 1.0, |
||
| G4double | bScalingIn = 1.0 |
||
| ) |
Definition at line 25 of file BDSFieldEMInterpolated.cc.
|
inlinevirtual |
Definition at line 43 of file BDSFieldEMInterpolated.hh.
|
inline |
Accessor.
Definition at line 49 of file BDSFieldEMInterpolated.hh.
References bScaling.
Referenced by BDSFieldEMInterpolated1D::GetField(), BDSFieldEMInterpolated2D::GetField(), BDSFieldEMInterpolated3D::GetField(), and BDSFieldEMInterpolated4D::GetField().

|
inline |
Accessor.
Definition at line 48 of file BDSFieldEMInterpolated.hh.
References eScaling.
Referenced by BDSFieldEMInterpolated1D::GetField(), BDSFieldEMInterpolated2D::GetField(), BDSFieldEMInterpolated3D::GetField(), and BDSFieldEMInterpolated4D::GetField().

|
inline |
|
inline |
|
inline |
Definition at line 57 of file BDSFieldEMInterpolated.hh.
|
inlinevirtual |
Each derived class should override this if needs be. Used to warn about time modulation with a time-varying field.
Reimplemented from BDSFieldEM.
Definition at line 45 of file BDSFieldEMInterpolated.hh.
|
private |
B field scaling value.
Definition at line 64 of file BDSFieldEMInterpolated.hh.
Referenced by BScaling(), and SetBScaling().
|
private |
E field scaling value.
Definition at line 63 of file BDSFieldEMInterpolated.hh.
Referenced by EScaling(), and SetEScaling().
|
private |
Definition at line 65 of file BDSFieldEMInterpolated.hh.
|
protected |
Definition at line 60 of file BDSFieldEMInterpolated.hh.