From 4639943a4260b4d0b6ccf04e479382c966b16c3f Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 14 Aug 2017 13:08:06 +0200
Subject: [PATCH] DDSim: bring back the command line content to the runheader

---
 DDSim/DD4hepSimulation.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index 5f267174a..1e3c78e27 100644
--- a/DDSim/DD4hepSimulation.py
+++ b/DDSim/DD4hepSimulation.py
@@ -128,6 +128,11 @@ class DD4hepSimulation(object):
       self.steeringFile = parsed.steeringFile
       self.readSteeringFile()
 
+    ## readSteeringFile will set self._argv to None if there is a steering file
+    if self._argv is None:
+      self._argv = list(argv) if argv else list(sys.argv)
+
+
     parser.add_argument("--compactFile", action="store", default=self.compactFile,
                         help="The compact XML file")
 
-- 
GitLab