From 1bf7cab901b894deb6293b396c45b883b13b39ea Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Fri, 25 Sep 2020 13:49:12 +0200
Subject: [PATCH] Define proper gconfig directory

---
 macro/tof/geometry/make_geofile.C | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/macro/tof/geometry/make_geofile.C b/macro/tof/geometry/make_geofile.C
index ee8355fa6f..71b21869f3 100644
--- a/macro/tof/geometry/make_geofile.C
+++ b/macro/tof/geometry/make_geofile.C
@@ -20,6 +20,11 @@ void make_geofile(TString stofGeom = "tof_v16a_1e") {
   TString outFile = outDir + "/auaumbias." + stofGeom + ".mc.root";
   TString parFile = outDir + "/auaumbias." + stofGeom + ".params.root";
 
+  // configuration
+  TString tut_configdir = inDir + "/sim/transport/gconfig";
+  gSystem->Setenv("CONFIG_DIR", tut_configdir.Data());
+
+
   // -----  Geometries  -----------------------------------------------------
   TString caveGeom = "cave.geo";
   //TString targetGeom = "target_au_250mu.geo";
-- 
GitLab