BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSBeamPipeFactoryClicPCL.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 BDSBEAMPIPEFACTORYCLICPCL_H
20#define BDSBEAMPIPEFACTORYCLICPCL_H
21
22#include "BDSBeamPipeFactoryPoints.hh"
23#include "BDSBeamPipe.hh"
24
32{
33public:
36
37private:
40 virtual void GeneratePoints(G4double aper1,
41 G4double aper2,
42 G4double aper3,
43 G4double aper4,
44 G4double beamPipeThickness,
45 G4int pointsPerTwoPi = 40);
46
48 virtual G4double CalculateIntersectionRadius(G4double aper1,
49 G4double aper2,
50 G4double aper3,
51 G4double aper4,
52 G4double beamPipeThickness);
53
54 void GenerateClicPCL(std::vector<G4TwoVector>& vec,
55 G4double aper1,
56 G4double aper2,
57 G4double aper3,
58 G4double aper4,
59 G4int pointsPerTowPi,
60 G4double margin = 0);
61
62protected:
64 virtual void CleanUp();
65
66private:
68 void CleanUpClicPCL();
69
71 virtual BDSBeamPipe* CommonFinalConstruction(const G4String& nameIn,
72 G4Material* vacuumMaterialIn,
73 G4Material* beamPipeMaterialIn,
74 G4double lengthIn);
75
76 G4double extentYLow;
77 G4double extentYHigh;
78};
79
80#endif
Factory for CLIC post collision line beam pipes.
virtual BDSBeamPipe * CommonFinalConstruction(const G4String &nameIn, G4Material *vacuumMaterialIn, G4Material *beamPipeMaterialIn, G4double lengthIn)
Overloads BDSBeamPipeFactoryPoints to make asymmetric extents, otherwise the same.
virtual void GeneratePoints(G4double aper1, G4double aper2, G4double aper3, G4double aper4, G4double beamPipeThickness, G4int pointsPerTwoPi=40)
G4double extentYLow
Cache of extent to pass around.
virtual void CleanUp()
Clear member vectors and run base class clean up to clear pointers between runs.
virtual G4double CalculateIntersectionRadius(G4double aper1, G4double aper2, G4double aper3, G4double aper4, G4double beamPipeThickness)
Calculate the radius of the solid used for intersection for angled faces.
G4double extentYHigh
Cache of extent to pass around.
void CleanUpClicPCL()
Clear member vectors - used for both initialisation and virtual CleanUp.
Factory for beam pipes defined by a series of x,y points that are extruded.
A holder class for a piece of beam pipe geometry.
Definition: BDSBeamPipe.hh:45