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) 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 BDSGEOMETTRYINSPECTOR_H
19#define BDSGEOMETTRYINSPECTOR_H
20#include "BDSExtent.hh"
21
22#include "globals.hh"
23#include "G4CutTubs.hh"
24
25#include <utility>
26
27class G4VSolid;
28
29namespace BDS
30{
34 std::pair<BDSExtent, BDSExtent> DetermineExtents(const G4VSolid* solid);
35
37 std::pair<BDSExtent, BDSExtent> InspectDisplacedSolid(const G4VSolid* solidIn);
38
41 std::pair<BDSExtent, BDSExtent> InspectSubtractionSolid(const G4VSolid* solidIn);
42
44 std::pair<BDSExtent, BDSExtent> InspectIntersectionSolid(const G4VSolid* solidIn);
45
47 std::pair<BDSExtent, BDSExtent> InspectUnionSolid(const G4VSolid* solidIn);
48
50 std::pair<BDSExtent, BDSExtent> InspectBox(const G4VSolid* solidIn);
51
53 std::pair<BDSExtent, BDSExtent> InspectTubs(const G4VSolid* solidIn);
54
56 std::pair<BDSExtent, BDSExtent> InspectCutTubs(const G4VSolid* solidIn);
57
59 std::pair<BDSExtent, BDSExtent> InspectEllipticalTube(const G4VSolid* solidIn);
60}
61
62#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.