BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSBeamPipeFactoryClicPCL.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 BDSBEAMPIPEFACTORYCLICPCL_H
19#define BDSBEAMPIPEFACTORYCLICPCL_H
20
21#include "BDSBeamPipeFactoryPoints.hh"
22#include "BDSBeamPipe.hh"
23
31{
32public:
35
36private:
39 virtual void GeneratePoints(G4double aper1,
40 G4double aper2,
41 G4double aper3,
42 G4double aper4,
43 G4double beamPipeThickness,
44 G4int pointsPerTwoPi = 40);
45
47 virtual G4double CalculateIntersectionRadius(G4double aper1,
48 G4double aper2,
49 G4double aper3,
50 G4double aper4,
51 G4double beamPipeThickness);
52
53 void GenerateClicPCL(std::vector<G4TwoVector>& vec,
54 G4double aper1,
55 G4double aper2,
56 G4double aper3,
57 G4double aper4,
58 G4int pointsPerTowPi,
59 G4double margin = 0);
60
61protected:
63 virtual void CleanUp();
64
65private:
67 void CleanUpClicPCL();
68
70 virtual BDSBeamPipe* CommonFinalConstruction(const G4String& nameIn,
71 G4Material* vacuumMaterialIn,
72 G4Material* beamPipeMaterialIn,
73 G4double lengthIn);
74
75 G4double extentYLow;
76 G4double extentYHigh;
77};
78
79#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.