Loading src/modules/GeometryBuilderGeant4/GeometryBuilderGeant4Module.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -93,7 +93,11 @@ GeometryBuilderGeant4Module::GeometryBuilderGeant4Module(Configuration& config, * @throws ModuleError If a certain Geant4 dataset is not set or not available */ static void check_dataset_g4(const std::string& env_name) { #if G4VERSION_NUMBER > 1100 const char* file_name = G4FindDataDir(env_name.c_str()); #else const char* file_name = std::getenv(env_name.c_str()); #endif if(file_name == nullptr) { throw ModuleError("Geant4 environment variable " + env_name + " is not set, make sure to source a Geant4 " Loading Loading
src/modules/GeometryBuilderGeant4/GeometryBuilderGeant4Module.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -93,7 +93,11 @@ GeometryBuilderGeant4Module::GeometryBuilderGeant4Module(Configuration& config, * @throws ModuleError If a certain Geant4 dataset is not set or not available */ static void check_dataset_g4(const std::string& env_name) { #if G4VERSION_NUMBER > 1100 const char* file_name = G4FindDataDir(env_name.c_str()); #else const char* file_name = std::getenv(env_name.c_str()); #endif if(file_name == nullptr) { throw ModuleError("Geant4 environment variable " + env_name + " is not set, make sure to source a Geant4 " Loading