From d25deeb04f388bae5fa8760cee5f5321dfd7a1a3 Mon Sep 17 00:00:00 2001
From: Tooba Ali <alit1@myumanitoba.ca>
Date: Tue, 25 Oct 2022 17:27:26 +0000
Subject: [PATCH] results_path in benchmarks/dis/dis.sh

---
 benchmarks/dis/analysis/truth_reconstruction.py | 2 +-
 benchmarks/dis/dis.sh                           | 2 +-
 benchmarks/single/analyze.sh                    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/benchmarks/dis/analysis/truth_reconstruction.py b/benchmarks/dis/analysis/truth_reconstruction.py
index 356401ce..2c96313c 100644
--- a/benchmarks/dis/analysis/truth_reconstruction.py
+++ b/benchmarks/dis/analysis/truth_reconstruction.py
@@ -11,7 +11,7 @@ parser = argparse.ArgumentParser()
 parser.add_argument('--rec_file', type=str, help='Reconstructed track file.')
 parser.add_argument('--config', type=str, help='Momentum configuration.')
 parser.add_argument('--nevents', type=float, help='Number of events to process.')
-parser.add_argument('--result_path', type=str, help='Output directory.')
+parser.add_argument('--results_path', type=str, help='Output directory.')
 args = parser.parse_args()
 kwargs = vars(args)
 
diff --git a/benchmarks/dis/dis.sh b/benchmarks/dis/dis.sh
index e3af02d7..c3e72b09 100755
--- a/benchmarks/dis/dis.sh
+++ b/benchmarks/dis/dis.sh
@@ -128,7 +128,7 @@ if [[ "$?" -ne "0" ]] ; then
   exit 1
 fi
 
-python benchmarks/dis/analysis/truth_reconstruction.py --rec_file ${REC_FILE} --config ${CONFIG} --result_path ${RESULTS_PATH} --nevents ${JUGGLER_N_EVENTS}
+python benchmarks/dis/analysis/truth_reconstruction.py --rec_file ${REC_FILE} --config ${CONFIG} --results_path "results/${BENCHMARK_TAG}/${BEAM_TAG}/minQ2=${MINQ2}" --nevents ${JUGGLER_N_EVENTS}
 if [[ "$?" -ne "0" ]] ; then
   echo "ERROR running truth_reconstruction script"
   exit 1
diff --git a/benchmarks/single/analyze.sh b/benchmarks/single/analyze.sh
index 5ca495af..6271888d 100644
--- a/benchmarks/single/analyze.sh
+++ b/benchmarks/single/analyze.sh
@@ -10,7 +10,7 @@ if [[ "$?" -ne "0" ]] ; then
   exit 1
 fi
 
-python benchmarks/dis/analysis/truth_reconstruction.py --rec_file ${JUGGLER_REC_FILE} --config ${JUGGLER_FILE_NAME_TAG} --result_path ${RESULTS_PATH} --nevents ${JUGGLER_N_EVENTS}
+python benchmarks/dis/analysis/truth_reconstruction.py --rec_file ${JUGGLER_REC_FILE} --config ${JUGGLER_FILE_NAME_TAG} --results_path ${RESULTS_PATH} --nevents ${JUGGLER_N_EVENTS}
 if [[ "$?" -ne "0" ]] ; then
   echo "ERROR running truth_reconstruction script"
   exit 1
-- 
GitLab