From d1455c7408b12fbfed025911077e15c731de3697 Mon Sep 17 00:00:00 2001 From: Benjamin Huth Date: Wed, 21 Aug 2024 15:24:40 +0200 Subject: [PATCH] add GeoModel to G4 detector construction helper --- Examples/Python/python/acts/examples/simulation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Examples/Python/python/acts/examples/simulation.py b/Examples/Python/python/acts/examples/simulation.py index 5b1ddccee26..3a135b225ad 100644 --- a/Examples/Python/python/acts/examples/simulation.py +++ b/Examples/Python/python/acts/examples/simulation.py @@ -608,6 +608,12 @@ def getG4DetectorConstructionFactory( except Exception as e: print(e) + try: + from acts.examples.geant4.geomodel import GeoModelDetectorConstructionFactory + return GeoModelDetectorConstructionFactory(detector, regionList) + except Exception as e: + print(e) + raise AttributeError(f"cannot find a suitable detector construction for {detector}")