BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSGeometryInspector.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 BDSGEOMETTRYINSPECTOR_H
20#define BDSGEOMETTRYINSPECTOR_H
21#include "BDSExtent.hh"
22
23#include "globals.hh"
24#include "G4CutTubs.hh"
25
26#include <utility>
27
28class G4VSolid;
29
30namespace BDS
31{
35 std::pair<BDSExtent, BDSExtent> DetermineExtents(const G4VSolid* solid);
36
38 std::pair<BDSExtent, BDSExtent> InspectDisplacedSolid(const G4VSolid* solidIn);
39
42 std::pair<BDSExtent, BDSExtent> InspectSubtractionSolid(const G4VSolid* solidIn);
43
45 std::pair<BDSExtent, BDSExtent> InspectIntersectionSolid(const G4VSolid* solidIn);
46
48 std::pair<BDSExtent, BDSExtent> InspectUnionSolid(const G4VSolid* solidIn);
49
51 std::pair<BDSExtent, BDSExtent> InspectBox(const G4VSolid* solidIn);
52
54 std::pair<BDSExtent, BDSExtent> InspectTubs(const G4VSolid* solidIn);
55
57 std::pair<BDSExtent, BDSExtent> InspectCutTubs(const G4VSolid* solidIn);
58
60 std::pair<BDSExtent, BDSExtent> InspectEllipticalTube(const G4VSolid* solidIn);
61}
62
63#endif
Return either G4Tubs or G4CutTubs depending on flat face.
std::pair< BDSExtent, BDSExtent > InspectIntersectionSolid(const G4VSolid *solidIn)
Inspect a G4IntersectionSolid.
std::pair< BDSExtent, BDSExtent > InspectEllipticalTube(const G4VSolid *solidIn)
Inspect a G4EllipticalTube.
std::pair< BDSExtent, BDSExtent > InspectCutTubs(const G4VSolid *solidIn)
Inspect a G4CutTubs.
std::pair< BDSExtent, BDSExtent > InspectSubtractionSolid(const G4VSolid *solidIn)
std::pair< BDSExtent, BDSExtent > DetermineExtents(const G4VSolid *solid)
std::pair< BDSExtent, BDSExtent > InspectBox(const G4VSolid *solidIn)
Inspect a G4Box.
std::pair< BDSExtent, BDSExtent > InspectTubs(const G4VSolid *solidIn)
Inspect a G4Tubs.
std::pair< BDSExtent, BDSExtent > InspectDisplacedSolid(const G4VSolid *solidIn)
Inspect a G4DisplacedSolid.
std::pair< BDSExtent, BDSExtent > InspectUnionSolid(const G4VSolid *solidIn)
Inspect a G4UnionSolid.