From 037be7fdfd9699657c8c0d2030f6c0a3aaf367e5 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 13 Jul 2022 10:22:41 +0200
Subject: [PATCH] DDSim: Fix use of ZeroTimePDGs config, previously was not
 forwarded to Simulation

---
 DDG4/python/DDSim/DD4hepSimulation.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/DDG4/python/DDSim/DD4hepSimulation.py b/DDG4/python/DDSim/DD4hepSimulation.py
index f119dec87..35dc29804 100644
--- a/DDG4/python/DDSim/DD4hepSimulation.py
+++ b/DDG4/python/DDSim/DD4hepSimulation.py
@@ -732,6 +732,7 @@ SIM = DD4hepSimulation()
     if have_mctruth:
       gen = GeneratorAction(simple.kernel(), "Geant4PrimaryHandler/PrimaryHandler")
       gen.RejectPDGs = ConfigHelper.makeString(self.physics.rejectPDGs)
+      gen.ZeroTimePDGs = ConfigHelper.makeString(self.physics.zeroTimePDGs)
       gen.enableUI()
       if output_level is not None:
         gen.OutputLevel = output_level
-- 
GitLab