8#include "OMSimLogger.hh"
11#include <G4LogicalSkinSurface.hh>
19#include <G4ThreeVector.hh>
20#include <G4RotationMatrix.hh>
21#include <G4LogicalVolume.hh>
23#include <G4MultiUnion.hh>
37 std::vector<double>
arange(
double start,
double stop,
double step);
38 TGraph*
create1dInterpolator(
const std::vector<double>& pX,
const std::vector<double>& pY,
const std::string& pName);
43 std::pair<std::vector<double>, std::vector<double>>
histogram(
44 const std::vector<double> &data,
45 const std::variant<
int, std::vector<double>> &bins = 10,
46 const std::optional<std::pair<double, double>> &range = std::nullopt,
47 const std::vector<double> &weights = std::vector<double>());
50 std::vector<std::vector<double>>
loadtxt(
const std::string &pFilePath,
53 char pDelimiter =
' ',
54 char pComments =
'#');
55 std::vector<double>
linspace(
double start,
double end,
int num_points,
bool endpoint =
true);
56 std::vector<double>
logspace(
double start,
double end,
int num_points,
double base = 10.0,
bool endpoint =
true);
57 void sortVectorByReference(std::vector<G4double> &referenceVector, std::vector<G4double> &sortVector);
58 double median(std::vector<double> p_vec);
59 double mean(
const std::vector<double> &p_vec,
const std::vector<double> &p_weights = {});
60 double std(
const std::vector<double>& vec,
const std::vector<double> &p_weights = {});
62 void throwError(
const G4String& message);
63 std::vector<G4String> splitStringByDelimiter(G4String
const &p_string,
char p_delim);
64 std::vector<G4String> splitStringByDelimiter(
char *p_char,
char p_delim);
65 extern std::string visualisationURL;
68 const G4double scaleCAD,
69 const G4ThreeVector& offsetCAD,
70 const G4RotationMatrix& rotation,
71 const std::string& filename,
72 const std::string& componentname,
74 G4VisAttributes visAttributes,
75 G4OpticalSurface* opticalSurface =
nullptr);
Definition of the OMSimCommandArgsTable singleton class, which controls user args.
Provides helper base class OMSimDetectorComponent for constructing and managing detector components i...
Abstract base class used for constructing detector components.
Definition OMSimDetectorComponent.hh:26