BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Static Public Member Functions
BDSBunchFactory Class Reference

Factory class for BDSBunch. More...

#include <BDSBunchFactory.hh>

Collaboration diagram for BDSBunchFactory:
Collaboration graph

Static Public Member Functions

static BDSBunchCreateBunch (const BDSParticleDefinition *beamParticle, const GMAD::Beam &beam, const G4Transform3D &beamlineTransform=G4Transform3D::Identity, G4double beamlineS=0, G4bool generatePrimariesOnlyIn=false)
 factory method More...
 
static BDSBunchCreateBunch (const BDSParticleDefinition *beamParticle, BDSBunchType distrType, const GMAD::Beam &beam, const G4Transform3D &beamlineTransform=G4Transform3D::Identity, G4double beamlineS=0, G4bool generatePrimariesOnlyIn=false)
 

Detailed Description

Factory class for BDSBunch.

Instantiate the specific type of bunch distribution (class), get the corresponding parameters from the gmad parser info and attach to the initialised random number generator.

Author
Jochem Snuverink

Definition at line 45 of file BDSBunchFactory.hh.

Member Function Documentation

◆ CreateBunch() [1/2]

BDSBunch * BDSBunchFactory::CreateBunch ( const BDSParticleDefinition beamParticle,
BDSBunchType  distrType,
const GMAD::Beam beam,
const G4Transform3D &  beamlineTransform = G4Transform3D::Identity,
G4double  beamlineS = 0,
G4bool  generatePrimariesOnlyIn = false 
)
static

Definition at line 73 of file BDSBunchFactory.cc.

◆ CreateBunch() [2/2]

BDSBunch * BDSBunchFactory::CreateBunch ( const BDSParticleDefinition beamParticle,
const GMAD::Beam beam,
const G4Transform3D &  beamlineTransform = G4Transform3D::Identity,
G4double  beamlineS = 0,
G4bool  generatePrimariesOnlyIn = false 
)
static

factory method

Definition at line 50 of file BDSBunchFactory.cc.

References CreateBunch(), BDS::DetermineBunchType(), GMAD::BeamBase::distrType, BDS::SplitOnColon(), and BDS::StrContains().

Referenced by CreateBunch(), BDSIM::Initialise(), BDSIMLink::Initialise(), BDSBunchComposite::SetOptions(), and BDSBunchCompositeSDE::SetOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

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