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) 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 BDSTUNNELFACTORYELLIPTICAL_H
19#define BDSTUNNELFACTORYELLIPTICAL_H
20
21#include "BDSTunnelFactoryBase.hh"
22
23#include "globals.hh" // geant4 globals / types
24
26
34{
35public:
38
40 virtual BDSTunnelSection* CreateTunnelSection(G4String name,
41 G4double length,
42 G4double tunnelThickness,
43 G4double tunnelSoilThickness,
44 G4Material* tunnelMaterial,
45 G4Material* tunnelSoilMaterial,
46 G4bool tunnelFloor,
47 G4double tunnelFloorOffset,
48 G4double tunnel1,
49 G4double tunnel2,
50 G4bool visible);
51
53 virtual BDSTunnelSection* CreateTunnelSectionAngled(G4String name,
54 G4double length,
55 G4ThreeVector inputFace,
56 G4ThreeVector outputFace,
57 G4double tunnelThickness,
58 G4double tunnelSoilThickness,
59 G4Material* tunnelMaterial,
60 G4Material* tunnelSoilMaterial,
61 G4bool tunnelFloor,
62 G4double tunnelFloorOffset,
63 G4double tunnel1,
64 G4double tunnel2,
65 G4bool visible);
66
67private:
70 void TestInputParameters(G4double& length,
71 G4double& tunnelThickness,
72 G4double& tunnelSoilThickness,
73 G4Material*& tunnelMaterial,
74 G4Material*& tunnelSoildMaterial,
75 G4double& tunnelFloorOffset,
76 G4double& tunnel1,
77 G4double& tunnel2);
78};
79
80#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.