BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSBunchFactory.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef BDSBUNCHFACTORY_H
19#define BDSBUNCHFACTORY_H
20
21#include "BDSBunchType.hh"
22
23#include "globals.hh"
24#include "G4Transform3D.hh"
25
26class BDSBunch;
28
29namespace GMAD
30{
31 class Beam;
32}
33
45{
46public:
48 static BDSBunch* CreateBunch(const BDSParticleDefinition* beamParticle,
49 const GMAD::Beam& beam,
50 const G4Transform3D& beamlineTransform = G4Transform3D::Identity,
51 G4double beamlineS = 0,
52 G4bool generatePrimariesOnlyIn = false);
53
54 static BDSBunch* CreateBunch(const BDSParticleDefinition* beamParticle,
55 BDSBunchType distrType,
56 const GMAD::Beam& beam,
57 const G4Transform3D& beamlineTransform = G4Transform3D::Identity,
58 G4double beamlineS = 0,
59 G4bool generatePrimariesOnlyIn = false);
60};
61
62#endif
Factory class for BDSBunch.
static BDSBunch * CreateBunch(const BDSParticleDefinition *beamParticle, const GMAD::Beam &beam, const G4Transform3D &beamlineTransform=G4Transform3D::Identity, G4double beamlineS=0, G4bool generatePrimariesOnlyIn=false)
factory method
The base class for bunch distribution generators.
Definition BDSBunch.hh:46
Wrapper for particle definition.
Improve type-safety of native enum data type in C++.
Beam loader.
Definition Beam.hh:36
Beam class.
Definition beam.h:43
Parser namespace for GMAD language. Combination of Geant4 and MAD.