BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSBeamPipeFactoryElliptical.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 BDSBEAMPIPEFACTORYELLIPTICAL_H
20#define BDSBEAMPIPEFACTORYELLIPTICAL_H
21
22#include "BDSBeamPipeFactoryBase.hh"
23#include "BDSBeamPipe.hh"
24
32{
33public:
36
37 virtual BDSBeamPipe* CreateBeamPipe(const G4String& nameIn,
38 G4double lengthIn,
39 G4double aper1 = 0,
40 G4double aper2 = 0,
41 G4double aper3 = 0,
42 G4double aper4 = 0,
43 G4Material* vacuumMaterialIn = nullptr,
44 G4double beamPipeThicknessIn = 0,
45 G4Material* beamPipeMaterialIn = nullptr,
46 const G4String& pointsFileIn = "",
47 const G4String& pointsUnitIn = "");
48
49 virtual BDSBeamPipe* CreateBeamPipe(const G4String& nameIn,
50 G4double lengthIn,
51 const G4ThreeVector& inputFaceNormalIn,
52 const G4ThreeVector& outputFaceNormalIn,
53 G4double aper1 = 0,
54 G4double aper2 = 0,
55 G4double aper3 = 0,
56 G4double aper4 = 0,
57 G4Material* vacuumMaterialIn = nullptr,
58 G4double beamPipeThicknessIn = 0,
59 G4Material* beamPipeMaterialIn = nullptr,
60 const G4String& pointsFileIn = "",
61 const G4String& pointsUnitIn = "");
62
63private:
68 BDSBeamPipe* CommonFinalConstruction(const G4String& nameIn,
69 G4Material* vacuumMaterialIn,
70 G4Material* beamPipeMaterialIn,
71 G4double lengthIn,
72 G4double containerRadiusX,
73 G4double containerRadiusY);
74
77 void CreateGeneralAngledSolids(const G4String& nameIn,
78 G4double lengthIn,
79 G4double aper1In,
80 G4double aper2In,
81 G4double beamPipeThicknessIn,
82 const G4ThreeVector& inputfaceIn,
83 const G4ThreeVector& outputfaceIn,
84 G4double& containerRadiusX,
85 G4double& containerRadiusY);
86};
87
88#endif
Abstract base class for beampipe factory classes.
Factory for elliptical beam pipes.
void CreateGeneralAngledSolids(const G4String &nameIn, G4double lengthIn, G4double aper1In, G4double aper2In, G4double beamPipeThicknessIn, const G4ThreeVector &inputfaceIn, const G4ThreeVector &outputfaceIn, G4double &containerRadiusX, G4double &containerRadiusY)
BDSBeamPipe * CommonFinalConstruction(const G4String &nameIn, G4Material *vacuumMaterialIn, G4Material *beamPipeMaterialIn, G4double lengthIn, G4double containerRadiusX, G4double containerRadiusY)
virtual BDSBeamPipe * CreateBeamPipe(const G4String &nameIn, G4double lengthIn, G4double aper1=0, G4double aper2=0, G4double aper3=0, G4double aper4=0, G4Material *vacuumMaterialIn=nullptr, G4double beamPipeThicknessIn=0, G4Material *beamPipeMaterialIn=nullptr, const G4String &pointsFileIn="", const G4String &pointsUnitIn="")
create a flat ended beampipe
A holder class for a piece of beam pipe geometry.
Definition: BDSBeamPipe.hh:45