BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSBeamPipeFactoryRectEllipse.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 BDSBEAMPIPEFACTORYRECTELLIPSE_H
19#define BDSBEAMPIPEFACTORYRECTELLIPSE_H
20
21#include "BDSBeamPipeFactoryBase.hh"
22#include "BDSBeamPipe.hh"
23
45{
46public:
49
50 virtual BDSBeamPipe* CreateBeamPipe(const G4String& nameIn,
51 G4double lengthIn,
52 G4double aper1 = 0,
53 G4double aper2 = 0,
54 G4double aper3 = 0,
55 G4double aper4 = 0,
56 G4Material* vacuumMaterialIn = nullptr,
57 G4double beamPipeThicknessIn = 0,
58 G4Material* beamPipeMaterialIn = nullptr,
59 const G4String& pointsFileIn = "",
60 const G4String& pointsUnitIn = "");
61
62 virtual BDSBeamPipe* CreateBeamPipe(const G4String& nameIn,
63 G4double lengthIn,
64 const G4ThreeVector& inputFaceNormalIn,
65 const G4ThreeVector& outputFaceNormalIn,
66 G4double aper1 = 0,
67 G4double aper2 = 0,
68 G4double aper3 = 0,
69 G4double aper4 = 0,
70 G4Material* vacuumMaterialIn = nullptr,
71 G4double beamPipeThicknessIn = 0,
72 G4Material* beamPipeMaterialIn = nullptr,
73 const G4String& pointsFileIn = "",
74 const G4String& pointsUnitIn = "");
75
76private:
79 BDSBeamPipe* CommonFinalConstruction(const G4String& nameIn,
80 G4Material* vacuumMaterialIn,
81 G4Material* beamPipeMaterialIn,
82 G4double lengthIn,
83 G4double widthIn,
84 G4double heightIn);
85 void CreateGeneralAngledSolids(const G4String& nameIn,
86 G4double lengthIn,
87 G4double aper1In,
88 G4double aper2In,
89 G4double aper3In,
90 G4double aper4In,
91 G4double beamPipeThicknessIn,
92 const G4ThreeVector& inputfaceIn,
93 const G4ThreeVector& outputfaceIn);
94
95 void CreateContainerSubtractionSolid(const G4String& nameIn,
96 G4double& lengthIn,
97 G4double& beamPipeThicknessIn,
98 G4double& aper1In,
99 G4double& aper2In,
100 G4double& aper3In,
101 G4double& aper4In);
102
103};
104
105#endif
Abstract base class for beampipe factory classes.
Factory for rectellipse aperture model beampipes.
BDSBeamPipe * CommonFinalConstruction(const G4String &nameIn, G4Material *vacuumMaterialIn, G4Material *beamPipeMaterialIn, G4double lengthIn, G4double widthIn, G4double heightIn)
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
void CreateGeneralAngledSolids(const G4String &nameIn, G4double lengthIn, G4double aper1In, G4double aper2In, G4double aper3In, G4double aper4In, G4double beamPipeThicknessIn, const G4ThreeVector &inputfaceIn, const G4ThreeVector &outputfaceIn)
A holder class for a piece of beam pipe geometry.