remage
Simulation framework for HPGe-based experiments
 
Loading...
Searching...
No Matches
RMGGeneratorUtil.hh
1// Copyright (C) 2022 Luigi Pertoldi <https://orcid.org/0000-0002-0467-2571>
2//
3// This program is free software: you can redistribute it and/or modify it under
4// the terms of the GNU Lesser General Public License as published by the Free
5// Software Foundation, either version 3 of the License, or (at your option) any
6// later version.
7//
8// This program is distributed in the hope that it will be useful, but WITHOUT
9// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11// details.
12//
13// You should have received a copy of the GNU Lesser General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16#ifndef _RMG_GENERATOR_UTIL_HH
17#define _RMG_GENERATOR_UTIL_HH
18
19#include "G4Box.hh"
20#include "G4Orb.hh"
21#include "G4Sphere.hh"
22#include "G4ThreeVector.hh"
23#include "G4Tubs.hh"
24#include "G4VPhysicalVolume.hh"
25#include "G4VSolid.hh"
26#include "globals.hh"
27
28namespace RMGGeneratorUtil {
29
39 bool IsSampleable(std::string g4_solid_type);
40
51 G4ThreeVector rand(const G4VSolid* solid, bool on_surface = false);
52
62 G4ThreeVector rand(const G4Box*, bool on_surface = false);
63
73 G4ThreeVector rand(const G4Sphere*, bool on_surface = false);
74
84 G4ThreeVector rand(const G4Orb*, bool on_surface = false);
85
95 G4ThreeVector rand(const G4Tubs*, bool on_surface = false);
96} // namespace RMGGeneratorUtil
97
98#endif
99
100// vim: tabstop=2 shiftwidth=2 expandtab