BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSBeamPipeFactoryRaceTrack.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 BDSBEAMPIPEFACTORYRACETRACK_H
19#define BDSBEAMPIPEFACTORYRACETRACK_H
20
21#include "BDSBeamPipeFactoryPoints.hh"
22
42{
43public:
46
47private:
50 virtual void GeneratePoints(G4double aper1,
51 G4double aper2,
52 G4double aper3,
53 G4double aper4,
54 G4double beamPipeThickness,
55 G4int pointsPerTwoPi = 40);
56
58 virtual G4double CalculateIntersectionRadius(G4double aper1,
59 G4double aper2,
60 G4double aper3,
61 G4double aper4,
62 G4double beamPipeThickness);
63
64 void GenerateRaceTrack(std::vector<G4TwoVector>& vec,
65 G4double x,
66 G4double y,
67 G4double r,
68 G4int pointsPerTowPi);
69};
70
71#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.