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) Royal Holloway,
3University of London 2001 - 2023.
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 BDSTUNNELFACTORYRECTABOVEGROUND_H
20#define BDSTUNNELFACTORYRECTABOVEGROUND_H
21
22#include "BDSTunnelFactoryBase.hh"
23
24#include "globals.hh" // geant4 globals / types
25#include "G4ThreeVector.hh"
26
28class G4VSolid;
29
40{
41public:
44
46 virtual BDSTunnelSection* CreateTunnelSection(G4String name,
47 G4double length,
48 G4double tunnelThickness,
49 G4double tunnelSoilThickness,
50 G4Material* tunnelMaterial,
51 G4Material* tunnelSoilMaterial,
52 G4bool tunnelFloor,
53 G4double tunnelFloorOffset,
54 G4double tunnel1,
55 G4double tunnel2,
56 G4bool visible);
57
59 virtual BDSTunnelSection* CreateTunnelSectionAngled(G4String name,
60 G4double length,
61 G4ThreeVector inputFace,
62 G4ThreeVector outputFace,
63 G4double tunnelThickness,
64 G4double tunnelSoilThickness,
65 G4Material* tunnelMaterial,
66 G4Material* tunnelSoilMaterial,
67 G4bool tunnelFloor,
68 G4double tunnelFloorOffset,
69 G4double tunnel1,
70 G4double tunnel2,
71 G4bool visible);
72
73private:
76 void TestInputParameters(G4double& length,
77 G4double& tunnelThickness,
78 G4double& tunnelSoilThickness,
79 G4Material*& tunnelMaterial,
80 G4Material*& tunnelSoildMaterial,
81 G4double& tunnel1,
82 G4double& tunnel2);
83
84 virtual void CleanUp();
85
86 G4VSolid* BuildContainerStraight(G4String name,
87 G4double lengthIn,
88 G4double tunnel1,
89 G4double tunnel2,
90 G4double tunnelThickness,
91 G4ThreeVector slabDisplacement);
92
93 G4VSolid* slabSolid;
94 G4double slabXHalfWidth;
95 G4double slabYHalfWidth;
96
97 G4double containerXRadius;
98 G4double containerYRadius;
99
100};
101
102#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.