g4system
Loading...
Searching...
No Matches
g4systemConventions.h File Reference

Conventions, labels, and error codes used by the g4system geometry/material layer. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  g4system

Variables

constexpr char g4system::G4SYSTEMNATFACTORY [] = "native"
constexpr char g4system::G4SYSTEMCADFACTORY [] = "cad"
constexpr char g4system::G4SYSTEMGDMFACTORY [] = "gdml"
constexpr int g4system::ERR_G4DEPENDENCIESNOTSOLVED
 Geometry/material dependencies could not be resolved.
constexpr int g4system::ERR_G4WRONGORDEREDROTATION = 502
 Rotation specification was malformed or unsupported.
constexpr int g4system::ERR_G4PARAMETERSMISMATCH
 Solid parameter count/format did not match expected constructors.
constexpr int g4system::ERR_G4SYSTEMFACTORYNOTFOUND
 A required Geant4 system factory was not found/mapped.
constexpr int g4system::ERR_G4MATERIALNOTFOUND = 505
 Material lookup failed and no fallback was available.
constexpr int g4system::ERR_G4SOLIDTYPENOTFOUND
 Requested solid type is not supported by the native factory.
constexpr int g4system::ERR_G4VOLUMEBUILDFAILED
 A volume could not be fully built (solid/logical/physical).
constexpr int g4system::ERR_G4MIRRORNOTFOUND
 A volume references a mirror that is not defined in its system.
constexpr int g4system::ERR_G4SURFACECONFIGINVALID
 Optical surface type/finish/model/properties are invalid.
constexpr char g4system::HYDROGEN_ELEMENT [] = "Hydrogen"
constexpr char g4system::DEUTERON_ISOTOPE [] = "Deuteron"
constexpr char g4system::DEUTERIUM_ELEMENT [] = "Deuterium"
constexpr char g4system::HGAS_MATERIAL [] = "HydrogenGas"
constexpr char g4system::DEUTERIUMGAS_MATERIAL [] = "DeuteriumGas"
constexpr char g4system::LD2_MATERIAL [] = "LD2"
constexpr char g4system::NITRO_ELEMENT [] = "Nitrogen"
constexpr char g4system::ND3_MATERIAL [] = "ND3"
constexpr char g4system::HELION_ISOTOPE [] = "Helion"
constexpr char g4system::HELIUM3_ELEMENT [] = "Helium3"
constexpr char g4system::HELIUM3GAS_MATERIAL [] = "Helium3Gas"
constexpr char g4system::TRITON_ISOTOPE [] = "Triton"
constexpr char g4system::TRITIUM_ELEMENT [] = "Tritium"
constexpr char g4system::TRITIUMGAS_MATERIAL [] = "H3Gas"
constexpr char g4system::AIROPTICAL_MATERIAL [] = "G4_AIR_Optical"
constexpr char g4system::KRYPTONITE_MATERIAL [] = "Kryptonite"

Detailed Description

This header centralizes:

  • factory labels used to route systems to the proper Geant4 object factory
  • error codes emitted through the module logger
  • names of predefined isotopes/elements/materials created at startup

Keeping these symbols here avoids hard-coded strings sprinkled across builders and factories.

Definition in file g4systemConventions.h.