BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSTunnelFactoryRectAboveGround.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 BDSTUNNELFACTORYRECTABOVEGROUND_H
19#define BDSTUNNELFACTORYRECTABOVEGROUND_H
20
21#include "BDSTunnelFactoryBase.hh"
22
23#include "globals.hh" // geant4 globals / types
24#include "G4ThreeVector.hh"
25
27class G4VSolid;
28
39{
40public:
43
45 virtual BDSTunnelSection* CreateTunnelSection(G4String name,
46 G4double length,
47 G4double tunnelThickness,
48 G4double tunnelSoilThickness,
49 G4Material* tunnelMaterial,
50 G4Material* tunnelSoilMaterial,
51 G4bool tunnelFloor,
52 G4double tunnelFloorOffset,
53 G4double tunnel1,
54 G4double tunnel2,
55 G4bool visible);
56
58 virtual BDSTunnelSection* CreateTunnelSectionAngled(G4String name,
59 G4double length,
60 G4ThreeVector inputFace,
61 G4ThreeVector outputFace,
62 G4double tunnelThickness,
63 G4double tunnelSoilThickness,
64 G4Material* tunnelMaterial,
65 G4Material* tunnelSoilMaterial,
66 G4bool tunnelFloor,
67 G4double tunnelFloorOffset,
68 G4double tunnel1,
69 G4double tunnel2,
70 G4bool visible);
71
72private:
75 void TestInputParameters(G4double& length,
76 G4double& tunnelThickness,
77 G4double& tunnelSoilThickness,
78 G4Material*& tunnelMaterial,
79 G4Material*& tunnelSoildMaterial,
80 G4double& tunnel1,
81 G4double& tunnel2);
82
83 virtual void CleanUp();
84
85 G4VSolid* BuildContainerStraight(G4String name,
86 G4double lengthIn,
87 G4double tunnel1,
88 G4double tunnel2,
89 G4double tunnelThickness,
90 G4ThreeVector slabDisplacement);
91
92 G4VSolid* slabSolid;
93 G4double slabXHalfWidth;
94 G4double slabYHalfWidth;
95
96 G4double containerXRadius;
97 G4double containerYRadius;
98
99};
100
101#endif
Abstract base class for tunnel factory classes.
Factory for rectangular tunnel segments above ground.
virtual BDSTunnelSection * CreateTunnelSectionAngled(G4String name, G4double length, G4ThreeVector inputFace, G4ThreeVector outputFace, G4double tunnelThickness, G4double tunnelSoilThickness, G4Material *tunnelMaterial, G4Material *tunnelSoilMaterial, G4bool tunnelFloor, G4double tunnelFloorOffset, G4double tunnel1, G4double tunnel2, G4bool visible)
Create a tunnel section with an angled input and output face.
void TestInputParameters(G4double &length, G4double &tunnelThickness, G4double &tunnelSoilThickness, G4Material *&tunnelMaterial, G4Material *&tunnelSoildMaterial, G4double &tunnel1, G4double &tunnel2)
functions below here are private to this particular factory
virtual BDSTunnelSection * CreateTunnelSection(G4String name, G4double length, G4double tunnelThickness, G4double tunnelSoilThickness, G4Material *tunnelMaterial, G4Material *tunnelSoilMaterial, G4bool tunnelFloor, G4double tunnelFloorOffset, G4double tunnel1, G4double tunnel2, G4bool visible)
Create a tunnel section with flat input and output faces.
Class that represents a section of tunnel.