BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSBunchHalo.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef BDSBUNCHHALO_H
20#define BDSBUNCHHALO_H
21
22#include "BDSBunch.hh"
23
24namespace CLHEP {
25 class RandFlat;
26}
27
35{
36public:
38 virtual ~BDSBunchHalo();
43 virtual void SetOptions(const BDSParticleDefinition* beamParticle,
44 const GMAD::Beam& beam,
45 const BDSBunchType& distrType,
46 G4Transform3D beamlineTransformIn = G4Transform3D::Identity,
47 const G4double beamlineS = 0);
48 virtual void CheckParameters();
50
51private:
53 G4double alphaX;
54 G4double alphaY;
55 G4double betaX;
56 G4double betaY;
57 G4double emitX;
58 G4double emitY;
59 G4double gammaX;
60 G4double gammaY;
61 G4double sigmaX;
62 G4double sigmaY;
63 G4double sigmaXp;
64 G4double sigmaYp;
66
67 G4double haloNSigmaXInner;
68 G4double haloNSigmaXOuter;
69 G4double haloNSigmaYInner;
70 G4double haloNSigmaYOuter;
71 G4double haloXCutInner;
72 G4double haloYCutInner;
73 G4double haloXCutOuter;
74 G4double haloYCutOuter;
75 G4double haloXpCutInner;
76 G4double haloYpCutInner;
77 G4double haloXpCutOuter;
78 G4double haloYpCutOuter;
79 G4double haloPSWeightParameter;
80 G4String weightFunction;
81
82 G4double emitInnerX;
83 G4double emitInnerY;
84 G4double emitOuterX;
85 G4double emitOuterY;
86
87 G4double xMax;
88 G4double yMax;
89 G4double xpMax;
90 G4double ypMax;
91
92 CLHEP::RandFlat* flatGen;
93};
94
95#endif
A halo distribution based on both twiss parameters and sigmas.
Definition: BDSBunchHalo.hh:35
G4double sigmaX
Twiss parameter.
Definition: BDSBunchHalo.hh:61
G4double sigmaYp
Twiss parameter.
Definition: BDSBunchHalo.hh:64
G4double alphaY
Twiss parameter.
Definition: BDSBunchHalo.hh:54
G4double gammaY
Twiss parameter.
Definition: BDSBunchHalo.hh:60
G4double emitX
Twiss parameter.
Definition: BDSBunchHalo.hh:57
G4double gammaX
Twiss parameter.
Definition: BDSBunchHalo.hh:59
G4double sigmaXp
Twiss parameter.
Definition: BDSBunchHalo.hh:63
G4double emitY
Twiss parameter.
Definition: BDSBunchHalo.hh:58
G4double sigmaY
Twiss parameter.
Definition: BDSBunchHalo.hh:62
virtual void SetOptions(const BDSParticleDefinition *beamParticle, const GMAD::Beam &beam, const BDSBunchType &distrType, G4Transform3D beamlineTransformIn=G4Transform3D::Identity, const G4double beamlineS=0)
Definition: BDSBunchHalo.cc:67
BDSBunchHalo(BDSBunchHalo &)=delete
Assignment and copy constructor not implemented nor used.
BDSBunchHalo & operator=(const BDSBunchHalo &)=delete
Assignment and copy constructor not implemented nor used.
virtual BDSParticleCoordsFull GetNextParticleLocal()
G4double betaY
Twiss parameter.
Definition: BDSBunchHalo.hh:56
virtual void CheckParameters()
G4double alphaX
Twiss parameter.
Definition: BDSBunchHalo.hh:53
G4double betaX
Twiss parameter.
Definition: BDSBunchHalo.hh:55
The base class for bunch distribution generators.
Definition: BDSBunch.hh:47
G4double beamlineS
Beamline initial S position.
Definition: BDSBunch.hh:201
A set of particle coordinates including energy and weight.
Wrapper for particle definition.
Improve type-safety of native enum data type in C++.
Beam class.
Definition: beam.h:44