BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSBeamPipeFactoryRaceTrack.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 BDSBEAMPIPEFACTORYRACETRACK_H
20#define BDSBEAMPIPEFACTORYRACETRACK_H
21
22#include "BDSBeamPipeFactoryPoints.hh"
23
43{
44public:
47
48private:
51 virtual void GeneratePoints(G4double aper1,
52 G4double aper2,
53 G4double aper3,
54 G4double aper4,
55 G4double beamPipeThickness,
56 G4int pointsPerTwoPi = 40);
57
59 virtual G4double CalculateIntersectionRadius(G4double aper1,
60 G4double aper2,
61 G4double aper3,
62 G4double aper4,
63 G4double beamPipeThickness);
64
65 void GenerateRaceTrack(std::vector<G4TwoVector>& vec,
66 G4double x,
67 G4double y,
68 G4double r,
69 G4int pointsPerTowPi);
70};
71
72#endif
Factory for beam pipes defined by a series of x,y points that are extruded.
Factory for racetrack aperture model beampipes.
virtual void GeneratePoints(G4double aper1, G4double aper2, G4double aper3, G4double aper4, G4double beamPipeThickness, G4int pointsPerTwoPi=40)
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.