BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSTunnelInfo.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 BDSTUNNELINFO
19#define BDSTUNNELINFO
20
21#include "BDSTunnelType.hh"
22#include "globals.hh" // geant4 types / globals
23
24class BDSExtent;
25class G4Material;
26
39{
40public:
42 BDSTunnelInfo() = delete;
43
46 G4double thicknessIn,
47 G4double soilThicknessIn,
48 G4Material* materialIn,
49 G4Material* soilMaterialIn,
50 G4bool buildFloorIn,
51 G4double floorOffsetIn,
52 G4double aper1In,
53 G4double aper2In,
54 G4bool sensitiveIn,
55 G4bool visible = true);
56
61 BDSTunnelInfo(G4String typeIn,
62 G4double thicknessIn,
63 G4double soilThicknessIn,
64 G4String materialIn,
65 G4String soilMaterialIn,
66 G4bool buildFloorIn,
67 G4double floorOffsetIn,
68 G4double aper1In,
69 G4double aper2In,
70 G4bool sensitiveIn,
71 G4bool visible = true);
72
73 BDSExtent IndicativeExtent() const;
74
75 BDSTunnelType type;
76 G4double thickness;
77 G4double soilThickness;
78 G4Material* material;
79 G4Material* soilMaterial;
80 G4bool buildFloor;
81 G4double floorOffset;
82
84 G4double aper1;
85
87 G4double aper2;
88
90 G4bool sensitive;
91
93 G4bool visible;
94};
95
96#endif
Holder for +- extents in 3 dimensions.
Definition BDSExtent.hh:38
Holder struct of all information required to create a section of tunnel.
BDSTunnelInfo()=delete
Default constructor, not needed.
G4bool visible
Is the tunnel visible?
G4bool sensitive
Is the tunnel sensitive?
G4double aper2
Tunnel aperture / shape parameter 2.
G4double aper1
Tunnel aperture / shape parameter 1.