g4system
Loading...
Searching...
No Matches
g4systemConventions.h
Go to the documentation of this file.
1#pragma once
2
3namespace g4system {
17
18// factory labels
19inline constexpr char G4SYSTEMNATFACTORY[] = "native";
20inline constexpr char G4SYSTEMCADFACTORY[] = "cad";
21inline constexpr char G4SYSTEMGDMFACTORY[] = "gdml";
22
23// error codes in the 500s
24inline constexpr int ERR_G4DEPENDENCIESNOTSOLVED =
25 501;
26inline constexpr int ERR_G4WRONGORDEREDROTATION = 502;
27inline constexpr int ERR_G4PARAMETERSMISMATCH =
28 503;
29inline constexpr int ERR_G4SYSTEMFACTORYNOTFOUND =
30 504;
31inline constexpr int ERR_G4MATERIALNOTFOUND = 505;
32inline constexpr int ERR_G4SOLIDTYPENOTFOUND =
33 506;
34inline constexpr int ERR_G4VOLUMEBUILDFAILED =
35 506;
36inline constexpr int ERR_G4MIRRORNOTFOUND =
37 507;
38inline constexpr int ERR_G4SURFACECONFIGINVALID =
39 508;
40
41// predefined isotopes / elements / materials
42inline constexpr char HYDROGEN_ELEMENT[] = "Hydrogen";
43inline constexpr char DEUTERON_ISOTOPE[] = "Deuteron";
44inline constexpr char DEUTERIUM_ELEMENT[] = "Deuterium";
45inline constexpr char HGAS_MATERIAL[] = "HydrogenGas";
46inline constexpr char DEUTERIUMGAS_MATERIAL[] = "DeuteriumGas";
47inline constexpr char LD2_MATERIAL[] = "LD2";
48inline constexpr char NITRO_ELEMENT[] = "Nitrogen";
49inline constexpr char ND3_MATERIAL[] = "ND3";
50inline constexpr char HELION_ISOTOPE[] = "Helion";
51inline constexpr char HELIUM3_ELEMENT[] = "Helium3";
52inline constexpr char HELIUM3GAS_MATERIAL[] = "Helium3Gas";
53inline constexpr char TRITON_ISOTOPE[] = "Triton";
54inline constexpr char TRITIUM_ELEMENT[] = "Tritium";
55inline constexpr char TRITIUMGAS_MATERIAL[] = "H3Gas";
56inline constexpr char AIROPTICAL_MATERIAL[] = "G4_AIR_Optical";
57inline constexpr char KRYPTONITE_MATERIAL[] = "Kryptonite";
58
59} // namespace g4system
constexpr int ERR_G4SURFACECONFIGINVALID
Optical surface type/finish/model/properties are invalid.
constexpr int ERR_G4MATERIALNOTFOUND
Material lookup failed and no fallback was available.
constexpr char LD2_MATERIAL[]
constexpr int ERR_G4VOLUMEBUILDFAILED
A volume could not be fully built (solid/logical/physical).
constexpr char TRITON_ISOTOPE[]
constexpr char G4SYSTEMGDMFACTORY[]
constexpr int ERR_G4WRONGORDEREDROTATION
Rotation specification was malformed or unsupported.
constexpr char HELIUM3_ELEMENT[]
constexpr char ND3_MATERIAL[]
constexpr char HGAS_MATERIAL[]
constexpr char DEUTERIUM_ELEMENT[]
constexpr char G4SYSTEMNATFACTORY[]
constexpr int ERR_G4SOLIDTYPENOTFOUND
Requested solid type is not supported by the native factory.
constexpr int ERR_G4PARAMETERSMISMATCH
Solid parameter count/format did not match expected constructors.
constexpr char DEUTERON_ISOTOPE[]
constexpr char AIROPTICAL_MATERIAL[]
constexpr char TRITIUM_ELEMENT[]
constexpr char NITRO_ELEMENT[]
constexpr char TRITIUMGAS_MATERIAL[]
constexpr char KRYPTONITE_MATERIAL[]
constexpr char G4SYSTEMCADFACTORY[]
constexpr char HELIUM3GAS_MATERIAL[]
constexpr char DEUTERIUMGAS_MATERIAL[]
constexpr char HYDROGEN_ELEMENT[]
constexpr int ERR_G4SYSTEMFACTORYNOTFOUND
A required Geant4 system factory was not found/mapped.
constexpr char HELION_ISOTOPE[]
constexpr int ERR_G4MIRRORNOTFOUND
A volume references a mirror that is not defined in its system.
constexpr int ERR_G4DEPENDENCIESNOTSOLVED
Geometry/material dependencies could not be resolved.