From b554c9fdeb46f9a1ab05b8f67471afd724652263 Mon Sep 17 00:00:00 2001
From: Whitney Armstrong <warmstrong@anl.gov>
Date: Sat, 21 Nov 2020 10:52:51 -0600
Subject: [PATCH] 	modified:   options/tracker_reconstruction.py

---
 options/tracker_reconstruction.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/options/tracker_reconstruction.py b/options/tracker_reconstruction.py
index a3bc67cb..f0e13a60 100644
--- a/options/tracker_reconstruction.py
+++ b/options/tracker_reconstruction.py
@@ -12,7 +12,10 @@ if "JUGGLER_DETECTOR" in os.environ :
 input_sim_file  = str(os.environ["JUGGLER_SIM_FILE"])
 output_rec_file = str(os.environ["JUGGLER_REC_FILE"])
 n_events = str(os.environ["JUGGLER_N_EVENTS"])
-detector_path = str(os.environ["JUGGLER_DETECTOR_PATH"])
+
+detector_path = ""
+if "JUGGLER_DETECTOR_PATH" in os.environ :
+    detector_path = str(os.environ["JUGGLER_DETECTOR_PATH"])
 
 geo_service  = GeoSvc("GeoSvc",
         detectors=["{}/{}.xml".format(detector_path, detector_name)])
-- 
GitLab