BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSBeamPipeFactoryRectangular.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 BDSBEAMPIPEFACTORYRECTANGULAR_H
19#define BDSBEAMPIPEFACTORYRECTANGULAR_H
20
21#include "BDSBeamPipeFactoryBase.hh"
22#include "BDSBeamPipe.hh"
23
31{
32public:
35
36 virtual BDSBeamPipe* CreateBeamPipe(const G4String& nameIn,
37 G4double lengthIn,
38 G4double aper1 = 0,
39 G4double aper2 = 0,
40 G4double aper3 = 0,
41 G4double aper4 = 0,
42 G4Material* vacuumMaterialIn = nullptr,
43 G4double beamPipeThicknessIn = 0,
44 G4Material* beamPipeMaterialIn = nullptr,
45 const G4String& pointsFileIn = "",
46 const G4String& pointsUnitIn = "");
47
48 virtual BDSBeamPipe* CreateBeamPipe(const G4String& nameIn,
49 G4double lengthIn,
50 const G4ThreeVector& inputFaceNormalIn,
51 const G4ThreeVector& outputFaceNormalIn,
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
62private:
65 BDSBeamPipe* CommonFinalConstruction(const G4String& nameIn,
66 G4Material* vacuumMaterialIn,
67 G4Material* beamPipeMaterialIn,
68 G4double lengthIn,
69 G4double containerHalfWidthX,
70 G4double containerHalfWidthY);
71
74 void CreateGeneralAngledSolids(const G4String& nameIn,
75 G4double lengthIn,
76 G4double aper1In,
77 G4double aper2In,
78 G4double beamPipeThicknessIn,
79 const G4ThreeVector& inputfaceIn,
80 const G4ThreeVector& outputfaceIn,
81 G4double& containerHalfWidthX,
82 G4double& containerHalfWidthY);
83};
84
85#endif
Abstract base class for beampipe factory classes.
Factory for rectangular beam pipes.
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 beamPipeThicknessIn, const G4ThreeVector &inputfaceIn, const G4ThreeVector &outputfaceIn, G4double &containerHalfWidthX, G4double &containerHalfWidthY)
BDSBeamPipe * CommonFinalConstruction(const G4String &nameIn, G4Material *vacuumMaterialIn, G4Material *beamPipeMaterialIn, G4double lengthIn, G4double containerHalfWidthX, G4double containerHalfWidthY)
A holder class for a piece of beam pipe geometry.