4#include "G4VUserDetectorConstruction.hh"
133 return digitization_routines_map->at(sd_name);
145 return digitization_routines_map;
156 if (g4world ==
nullptr) {
168 std::shared_ptr<GOptions> gopt;
175 std::shared_ptr<GWorld> gworld;
182 std::shared_ptr<G4World> g4world;
190 std::shared_ptr<gdynamicdigitization::dRoutinesMap> digitization_routines_map;
198 static G4ThreadLocal
GMagneto* gmagneto;
207 void loadDigitizationPlugins();
std::unordered_map< std::string, G4Volume * > get_g4volumes_map() const
bool is_empty() const noexcept
std::shared_ptr< GLogger > log
Builds and (optionally) reloads the Geant4 geometry from GEMC world definitions.
GDetectorConstruction(std::shared_ptr< GOptions > gopts)
Constructs a detector builder configured by the provided options.
void reload_geometry(SystemList sl)
Reloads the geometry using a new list of GSystem objects.
std::unordered_map< std::string, G4Volume * > get_g4volumes_map() const
Returns a map of built Geant4 volumes indexed by their GEMC/G4World names.
G4VPhysicalVolume * Construct() override
Geant4 geometry construction hook.
std::shared_ptr< GDynamicDigitization > get_digitization_routines_for_sdname(const std::string &sd_name) const
Returns the digitization routine for a given sensitive detector name.
void ConstructSDandField() override
Geant4 SD/field construction hook.
std::shared_ptr< gdynamicdigitization::dRoutinesMap > get_digitization_routines_map() const
Returns the full map of digitization routines.
bool is_empty() const
Returns whether the currently built geometry is empty.
void error(int exit_code, Args &&... args) const
#define ERR_G4VOLUMEBUILDFAILED
std::vector< SystemPtr > SystemList