From 3cee95d4eb3eb518e09dfa06c35638e1f5d7cbcc Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 21 Jan 2016 10:30:34 +0000
Subject: [PATCH] DDSim: runheader: Add ILCSOFT and lcgeo path to runheader

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

diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py
index e48badbb1..566073787 100644
--- a/DDSim/DD4hepSimulation.py
+++ b/DDSim/DD4hepSimulation.py
@@ -563,6 +563,10 @@ class DD4hepSimulation(object):
     ### add current working directory (where we call from)
     runHeader["WorkingDirectory"] = os.getcwd()
 
+    ### ILCSoft, LCGEo location from environment variables, names from init_ilcsoft.sh
+    runHeader["ILCSoft_location"] = os.environ.get("ILCSOFT", "Unknown")
+    runHeader["lcgeo_location"] = os.environ.get("lcgeo_DIR", "Unknown")
+
     ### add date
     runHeader["DateUTC"] = str(datetime.datetime.utcnow())+" UTC"
 
-- 
GitLab