BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Factory class for BDSBunch. More...
#include <BDSBunchFactory.hh>
Static Public Member Functions | |
static BDSBunch * | CreateBunch (const BDSParticleDefinition *beamParticle, const GMAD::Beam &beam, const G4Transform3D &beamlineTransform=G4Transform3D::Identity, G4double beamlineS=0, G4bool generatePrimariesOnlyIn=false) |
factory method | |
static BDSBunch * | CreateBunch (const BDSParticleDefinition *beamParticle, BDSBunchType distrType, const GMAD::Beam &beam, const G4Transform3D &beamlineTransform=G4Transform3D::Identity, G4double beamlineS=0, G4bool generatePrimariesOnlyIn=false) |
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.
Definition at line 45 of file BDSBunchFactory.hh.
|
static |
Definition at line 73 of file BDSBunchFactory.cc.
|
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().