BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Private Attributes
BDSFieldMagInterpolated2Layer Class Reference

Two interpolated fields in one. One takes precedence in a subregion. More...

#include <BDSFieldMagInterpolated2Layer.hh>

Inheritance diagram for BDSFieldMagInterpolated2Layer:
Inheritance graph
Collaboration diagram for BDSFieldMagInterpolated2Layer:
Collaboration graph

Public Member Functions

 BDSFieldMagInterpolated2Layer (BDSFieldMagInterpolated *mainFieldIn, BDSFieldMagInterpolated *subFieldIn)
 
virtual G4ThreeVector GetField (const G4ThreeVector &position, const G4double t=0) const
 Return the interpolated field value at a given point. More...
 
- Public Member Functions inherited from BDSFieldMag
 BDSFieldMag ()
 
 BDSFieldMag (G4Transform3D transformIn)
 
virtual G4ThreeVector GetField (const G4ThreeVector &position, const G4double t=0) const =0
 
virtual void GetFieldValue (const G4double point[4], G4double *field) const
 
virtual G4ThreeVector GetFieldTransformed (const G4ThreeVector &position, const G4double t) const
 Get the field value after applying transform for local offset. More...
 
virtual void SetTransform (const G4Transform3D &transformIn)
 
G4bool FiniteStrength () const
 Accessor. More...
 

Private Attributes

BDSFieldMagInterpolatedmainField
 
BDSFieldMagInterpolatedsubField
 
BDSExtent subFieldExtent
 

Additional Inherited Members

- Protected Attributes inherited from BDSFieldMag
G4bool finiteStrength
 Flag to cache whether finite nor not. More...
 
G4Transform3D transform
 Transform to apply for the field relative to the local coordinates of the geometry. More...
 

Detailed Description

Two interpolated fields in one. One takes precedence in a subregion.

Author
Laurie Nevay

Definition at line 35 of file BDSFieldMagInterpolated2Layer.hh.

Constructor & Destructor Documentation

◆ BDSFieldMagInterpolated2Layer()

BDSFieldMagInterpolated2Layer::BDSFieldMagInterpolated2Layer ( BDSFieldMagInterpolated mainFieldIn,
BDSFieldMagInterpolated subFieldIn 
)

Definition at line 27 of file BDSFieldMagInterpolated2Layer.cc.

◆ ~BDSFieldMagInterpolated2Layer()

BDSFieldMagInterpolated2Layer::~BDSFieldMagInterpolated2Layer ( )
virtual

Definition at line 37 of file BDSFieldMagInterpolated2Layer.cc.

Member Function Documentation

◆ GetField()

G4ThreeVector BDSFieldMagInterpolated2Layer::GetField ( const G4ThreeVector &  position,
const G4double  t = 0 
) const
virtual

Return the interpolated field value at a given point.

Implements BDSFieldMag.

Definition at line 43 of file BDSFieldMagInterpolated2Layer.cc.

References BDSExtent::Encompasses(), and BDSFieldMag::GetFieldTransformed().

Here is the call graph for this function:

Field Documentation

◆ mainField

BDSFieldMagInterpolated* BDSFieldMagInterpolated2Layer::mainField
private

Definition at line 47 of file BDSFieldMagInterpolated2Layer.hh.

◆ subField

BDSFieldMagInterpolated* BDSFieldMagInterpolated2Layer::subField
private

Definition at line 48 of file BDSFieldMagInterpolated2Layer.hh.

◆ subFieldExtent

BDSExtent BDSFieldMagInterpolated2Layer::subFieldExtent
private

Definition at line 49 of file BDSFieldMagInterpolated2Layer.hh.


The documentation for this class was generated from the following files: