From 42a255587f6718018a9b909d0d195da992fba4bd Mon Sep 17 00:00:00 2001
From: Shaojun Lu <shaojun.lu@desy.de>
Date: Thu, 30 Mar 2017 15:51:01 +0200
Subject: [PATCH] Added one option to fill act list.

---
 DDSim/DD4hepSimulation.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index 3779f0566..e1bdd8bea 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"""
-- 
GitLab