BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSBeamPipeFactoryPointsFile.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 BDSBEAMPIPEFACTORYPOINTSFILE_H
20#define BDSBEAMPIPEFACTORYPOINTSFILE_H
21
22#include "BDSBeamPipeFactoryPoints.hh"
23
24#include "G4Types.hh"
25
33{
34public:
37
38private:
40 virtual void GeneratePoints(G4double, G4double, G4double, G4double,
41 G4double beamPipeThickness, G4int=40);
42
44 virtual G4double CalculateIntersectionRadius(G4double aper1,
45 G4double aper2,
46 G4double aper3,
47 G4double aper4,
48 G4double beamPipeThickness);
49
51 G4double Determinant(const G4TwoVector& v1,
52 const G4TwoVector& v2) const;
53
54 G4double maximumRadius;
55};
56
57#endif
Factory for beam pipe made from an list of x,y points in a file.
G4double Determinant(const G4TwoVector &v1, const G4TwoVector &v2) const
Calculate the determinant of 2x G4TwoVectors.
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.
virtual void GeneratePoints(G4double, G4double, G4double, G4double, G4double beamPipeThickness, G4int=40)
Purely to fulfill interface - should not be used!
Factory for beam pipes defined by a series of x,y points that are extruded.