File indexing completed on 2026-06-26 07:49:39
0001 #include <cstdlib>
0002
0003 #include "G4CXOpticks.hh"
0004
0005 namespace
0006 {
0007 struct CSGFoundry_GDMLBootstrap
0008 {
0009 CSGFoundry_GDMLBootstrap()
0010 {
0011 const char* gdml = std::getenv("SIMPHONY_GEOM_FILE");
0012 if (gdml == nullptr || gdml[0] == '\0')
0013 return;
0014
0015 setenv("CSGFoundry_GDMLBootstrap_ReturnExisting", "1", 0);
0016
0017 G4CXOpticks::SetNoGPU(true);
0018 G4CXOpticks::SetGeometry(gdml);
0019 }
0020 };
0021
0022 CSGFoundry_GDMLBootstrap boot;
0023 }