BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSTunnelFactoryElliptical.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 BDSTUNNELFACTORYELLIPTICAL_H
20#define BDSTUNNELFACTORYELLIPTICAL_H
21
22#include "BDSTunnelFactoryBase.hh"
23
24#include "globals.hh" // geant4 globals / types
25
27
35{
36public:
39
41 virtual BDSTunnelSection* CreateTunnelSection(G4String name,
42 G4double length,
43 G4double tunnelThickness,
44 G4double tunnelSoilThickness,
45 G4Material* tunnelMaterial,
46 G4Material* tunnelSoilMaterial,
47 G4bool tunnelFloor,
48 G4double tunnelFloorOffset,
49 G4double tunnel1,
50 G4double tunnel2,
51 G4bool visible);
52
54 virtual BDSTunnelSection* CreateTunnelSectionAngled(G4String name,
55 G4double length,
56 G4ThreeVector inputFace,
57 G4ThreeVector outputFace,
58 G4double tunnelThickness,
59 G4double tunnelSoilThickness,
60 G4Material* tunnelMaterial,
61 G4Material* tunnelSoilMaterial,
62 G4bool tunnelFloor,
63 G4double tunnelFloorOffset,
64 G4double tunnel1,
65 G4double tunnel2,
66 G4bool visible);
67
68private:
71 void TestInputParameters(G4double& length,
72 G4double& tunnelThickness,
73 G4double& tunnelSoilThickness,
74 G4Material*& tunnelMaterial,
75 G4Material*& tunnelSoildMaterial,
76 G4double& tunnelFloorOffset,
77 G4double& tunnel1,
78 G4double& tunnel2);
79};
80
81#endif
Abstract base class for tunnel factory classes.
Factory for elliptical tunnel segments. Builds floor, tunnel and soil.
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.
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 &tunnelFloorOffset, G4double &tunnel1, G4double &tunnel2)
functions below here are private to this particular factory
Class that represents a section of tunnel.