Skip to content

Commit

Permalink
add GeoModel to G4 detector construction helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Huth authored and Benjamin Huth committed Aug 21, 2024
1 parent 7c27231 commit d1455c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Examples/Python/python/acts/examples/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")


Expand Down

0 comments on commit d1455c7

Please sign in to comment.