BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
BDSFieldMagDipoleHardEdgeMuonCooler Class Reference

This class represents a hard-edge dipole field. The field is calculated in cartesian coordinates. More...

#include <BDSFieldMagDipoleHardEdgeMuonCooler.hh>

Inheritance diagram for BDSFieldMagDipoleHardEdgeMuonCooler:
Inheritance graph
Collaboration diagram for BDSFieldMagDipoleHardEdgeMuonCooler:
Collaboration graph

Public Member Functions

 BDSFieldMagDipoleHardEdgeMuonCooler (G4double strength, G4double apertureRadius, G4double coilLength)
 
virtual G4ThreeVector GetField (const G4ThreeVector &position, const G4double t=0) const
 Calculate the field value.
 
G4double GetB0 () const
 Accessor.
 
- Public Member Functions inherited from BDSFieldMag
 BDSFieldMag ()
 
 BDSFieldMag (G4Transform3D transformIn)
 
virtual G4bool TimeVarying () const
 
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.
 
virtual void SetTransform (const G4Transform3D &transformIn)
 
void SetModulator (BDSModulator *modulatorIn)
 Set the optional modulator.
 
G4bool FiniteStrength () const
 Accessor.
 

Private Attributes

G4double D
 Private default constructor to ensure use of supplied constructor.
 
G4double halfLength
 
G4double B0
 

Additional Inherited Members

- Protected Attributes inherited from BDSFieldMag
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.
 
BDSModulatormodulator
 Optional modulator;.
 

Detailed Description

This class represents a hard-edge dipole field. The field is calculated in cartesian coordinates.

Author
Paul Bogdan Jurj

Definition at line 36 of file BDSFieldMagDipoleHardEdgeMuonCooler.hh.

Constructor & Destructor Documentation

◆ BDSFieldMagDipoleHardEdgeMuonCooler()

BDSFieldMagDipoleHardEdgeMuonCooler::BDSFieldMagDipoleHardEdgeMuonCooler ( G4double  strength,
G4double  apertureRadius,
G4double  coilLength 
)

Definition at line 34 of file BDSFieldMagDipoleHardEdgeMuonCooler.cc.

◆ ~BDSFieldMagDipoleHardEdgeMuonCooler()

virtual BDSFieldMagDipoleHardEdgeMuonCooler::~BDSFieldMagDipoleHardEdgeMuonCooler ( )
inlinevirtual

Definition at line 47 of file BDSFieldMagDipoleHardEdgeMuonCooler.hh.

Member Function Documentation

◆ GetB0()

G4double BDSFieldMagDipoleHardEdgeMuonCooler::GetB0 ( ) const
inline

Accessor.

Definition at line 54 of file BDSFieldMagDipoleHardEdgeMuonCooler.hh.

◆ GetField()

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

Calculate the field value.

Implements BDSFieldMag.

Definition at line 43 of file BDSFieldMagDipoleHardEdgeMuonCooler.cc.

References D.

Field Documentation

◆ B0

G4double BDSFieldMagDipoleHardEdgeMuonCooler::B0
private

Definition at line 62 of file BDSFieldMagDipoleHardEdgeMuonCooler.hh.

◆ D

G4double BDSFieldMagDipoleHardEdgeMuonCooler::D
private

Private default constructor to ensure use of supplied constructor.

Definition at line 60 of file BDSFieldMagDipoleHardEdgeMuonCooler.hh.

Referenced by GetField().

◆ halfLength

G4double BDSFieldMagDipoleHardEdgeMuonCooler::halfLength
private

Definition at line 61 of file BDSFieldMagDipoleHardEdgeMuonCooler.hh.


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