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

A wrapper class for BDSFieldMagSkew where it owns the field. More...

#include <BDSFieldMagSkewOwn.hh>

Inheritance diagram for BDSFieldMagSkewOwn:
Inheritance graph
Collaboration diagram for BDSFieldMagSkewOwn:
Collaboration graph

Public Member Functions

 BDSFieldMagSkewOwn (BDSFieldMag *fieldIn, G4double angle=0)
 Wrap a field and rotate it by angle (rad) in the x-y plane (about z axis). More...
 
- Public Member Functions inherited from BDSFieldMagSkew
 BDSFieldMagSkew (BDSFieldMag *fieldIn, G4double angle=0)
 Wrap a field and rotate it by angle (rad) in the x-y plane (about z axis). More...
 
virtual G4ThreeVector GetField (const G4ThreeVector &position, const G4double t=0) const
 Get the field - local coordinates, and rotated. 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 Member Functions

 BDSFieldMagSkewOwn ()=delete
 Private default constructor to force use of supplied ones.
 

Private Attributes

BDSFieldMag *const field
 The nominal non-skewed field. More...
 

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

A wrapper class for BDSFieldMagSkew where it owns the field.

Author
Laurie Nevay

Definition at line 34 of file BDSFieldMagSkewOwn.hh.

Constructor & Destructor Documentation

◆ BDSFieldMagSkewOwn()

BDSFieldMagSkewOwn::BDSFieldMagSkewOwn ( BDSFieldMag fieldIn,
G4double  angle = 0 
)

Wrap a field and rotate it by angle (rad) in the x-y plane (about z axis).

Definition at line 22 of file BDSFieldMagSkewOwn.cc.

◆ ~BDSFieldMagSkewOwn()

BDSFieldMagSkewOwn::~BDSFieldMagSkewOwn ( )
virtual

Definition at line 28 of file BDSFieldMagSkewOwn.cc.

Field Documentation

◆ field

BDSFieldMag* const BDSFieldMagSkewOwn::field
private

The nominal non-skewed field.

Definition at line 47 of file BDSFieldMagSkewOwn.hh.


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