From f071b4c1cd45b9b97fcb7d528c44c9067fe03926 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Sat, 19 Mar 2016 11:42:03 +0000
Subject: [PATCH] DDSim: Fix bug in enablePrimaryHandler

Need to return the value
Kept DDg4ParticleGun from working
---
 DDSim/DD4hepSimulation.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index fa230344c..c46f8d601 100644
--- a/DDSim/DD4hepSimulation.py
+++ b/DDSim/DD4hepSimulation.py
@@ -692,6 +692,7 @@ SIM = DD4hepSimulation()
       print "Enabling the PrimaryHandler"
     else:
       print "Disabling the PrimaryHandler"
+    return enablePrimaryHandler
 
 ################################################################################
 ### MODULE FUNCTIONS GO HERE
-- 
GitLab