BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSBeamPipeFactoryPointsFile.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 BDSBEAMPIPEFACTORYPOINTSFILE_H
19#define BDSBEAMPIPEFACTORYPOINTSFILE_H
20
21#include "BDSBeamPipeFactoryPoints.hh"
22
23#include "G4Types.hh"
24
32{
33public:
36
37private:
39 virtual void GeneratePoints(G4double, G4double, G4double, G4double,
40 G4double beamPipeThickness, G4int=40);
41
43 virtual G4double CalculateIntersectionRadius(G4double aper1,
44 G4double aper2,
45 G4double aper3,
46 G4double aper4,
47 G4double beamPipeThickness);
48
50 G4double Determinant(const G4TwoVector& v1,
51 const G4TwoVector& v2) const;
52
53 G4double maximumRadius;
54};
55
56#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.