diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py index 3779f0566208797e80d8d47bcaee78ede03ba444..e1bdd8bea1261abe4d1dda7f07dd0a9ea41101c7 100644 --- a/DDSim/DD4hepSimulation.py +++ b/DDSim/DD4hepSimulation.py @@ -615,9 +615,14 @@ class DD4hepSimulation(object): break seq,act = setupFuction( det, type=action ) self.filter.applyFilters( seq, det, defaultFilter ) + ##set detailed hit creation mode for this if self.enableDetailedShowerMode: - act.HitCreationMode = 2 + if isinstance(act, list): + for a in act: + a.HitCreationMode = 2 + else: + act.HitCreationMode = 2 def __printSteeringFile( self, parser): """print the parameters formated as a steering file"""