From b2a4ad4142279415d922ad2dc598bc736af89e59 Mon Sep 17 00:00:00 2001
From: Johannes Elmsheuser <johannes.elmsheuser@cern.ch>
Date: Wed, 25 Sep 2024 10:40:28 +0200
Subject: [PATCH] Change architecture path the be automatically detectable in
 the uproot setup

---
 Tools/TrfTestsARTPlots/test/test_trf_q442_phys_physlite_ca.sh | 2 +-
 Tools/TrfTestsARTPlots/test/test_trf_q443_phys_physlite_ca.sh | 2 +-
 Tools/TrfTestsARTPlots/test/test_trf_q445_phys_physlite_ca.sh | 2 +-
 Tools/TrfTestsARTPlots/test/test_trf_q449_phys_physlite_ca.sh | 2 +-
 Tools/TrfTestsARTPlots/test/test_trf_q454_phys_physlite_ca.sh | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Tools/TrfTestsARTPlots/test/test_trf_q442_phys_physlite_ca.sh b/Tools/TrfTestsARTPlots/test/test_trf_q442_phys_physlite_ca.sh
index 6a97f32f63d4..fa358425ba9e 100755
--- a/Tools/TrfTestsARTPlots/test/test_trf_q442_phys_physlite_ca.sh
+++ b/Tools/TrfTestsARTPlots/test/test_trf_q442_phys_physlite_ca.sh
@@ -83,7 +83,7 @@ echo "art-result: ${rc5} dcube_physlite"
 # Run trf_getVariables.py to extract variables from DAOD_PHYSLITE.art.pool.root
 echo "============ trf_getVariables.py"
 get_files trf_getVariables.py
-source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/x86_64-el9-gcc13-opt/uproot-env.sh
+source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/`arch`-el9-gcc13-opt/uproot-env.sh
 trf_getVariables.py --inputFile DAOD_PHYSLITE.art.pool.root
 rccsv=$?
 tar czf generated_csv_files.tar.gz generated_csv_files/
diff --git a/Tools/TrfTestsARTPlots/test/test_trf_q443_phys_physlite_ca.sh b/Tools/TrfTestsARTPlots/test/test_trf_q443_phys_physlite_ca.sh
index 4e4eb2e841f6..1b0f3f3bb9fa 100755
--- a/Tools/TrfTestsARTPlots/test/test_trf_q443_phys_physlite_ca.sh
+++ b/Tools/TrfTestsARTPlots/test/test_trf_q443_phys_physlite_ca.sh
@@ -103,7 +103,7 @@ echo "art-result: ${rc5} dcube_physlite"
 # Run trf_getVariables.py to extract variables from DAOD_PHYSLITE.art.pool.root
 echo "============ trf_getVariables.py"
 get_files trf_getVariables.py
-source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/x86_64-el9-gcc13-opt/uproot-env.sh
+source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/`arch`-el9-gcc13-opt/uproot-env.sh
 trf_getVariables.py --inputFile DAOD_PHYSLITE.art.pool.root
 rccsv=$?
 tar czf generated_csv_files.tar.gz generated_csv_files/
diff --git a/Tools/TrfTestsARTPlots/test/test_trf_q445_phys_physlite_ca.sh b/Tools/TrfTestsARTPlots/test/test_trf_q445_phys_physlite_ca.sh
index 1f8eedc404da..05c2f65d4389 100755
--- a/Tools/TrfTestsARTPlots/test/test_trf_q445_phys_physlite_ca.sh
+++ b/Tools/TrfTestsARTPlots/test/test_trf_q445_phys_physlite_ca.sh
@@ -89,7 +89,7 @@ echo "art-result: ${rc5} dcube_physlite"
 # Run trf_getVariables.py to extract variables from DAOD_PHYSLITE.art.pool.root
 echo "============ trf_getVariables.py"
 get_files trf_getVariables.py
-source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/x86_64-el9-gcc13-opt/uproot-env.sh
+source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/`arch`-el9-gcc13-opt/uproot-env.sh
 trf_getVariables.py --inputFile DAOD_PHYSLITE.art.pool.root
 rccsv=$?
 tar czf generated_csv_files.tar.gz generated_csv_files/
diff --git a/Tools/TrfTestsARTPlots/test/test_trf_q449_phys_physlite_ca.sh b/Tools/TrfTestsARTPlots/test/test_trf_q449_phys_physlite_ca.sh
index 9ff04f436a78..a2e78902e153 100755
--- a/Tools/TrfTestsARTPlots/test/test_trf_q449_phys_physlite_ca.sh
+++ b/Tools/TrfTestsARTPlots/test/test_trf_q449_phys_physlite_ca.sh
@@ -110,7 +110,7 @@ echo "============ done "
 # Run trf_getVariables.py to extract variables from DAOD_PHYSLITE.art.pool.root
 echo "============ trf_getVariables.py"
 get_files trf_getVariables.py
-source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/x86_64-el9-gcc13-opt/uproot-env.sh
+source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/`arch`-el9-gcc13-opt/uproot-env.sh
 trf_getVariables.py --inputFile DAOD_PHYSLITE.art.pool.root
 rccsv=$?
 tar czf generated_csv_files.tar.gz generated_csv_files/
diff --git a/Tools/TrfTestsARTPlots/test/test_trf_q454_phys_physlite_ca.sh b/Tools/TrfTestsARTPlots/test/test_trf_q454_phys_physlite_ca.sh
index 792d6b4e4475..67ce1e5e930c 100755
--- a/Tools/TrfTestsARTPlots/test/test_trf_q454_phys_physlite_ca.sh
+++ b/Tools/TrfTestsARTPlots/test/test_trf_q454_phys_physlite_ca.sh
@@ -84,7 +84,7 @@ echo "art-result: ${rc5} dcube_physlite"
 # Run trf_getVariables.py to extract variables from DAOD_PHYSLITE.art.pool.root
 echo "============ trf_getVariables.py"
 get_files trf_getVariables.py
-source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/x86_64-el9-gcc13-opt/uproot-env.sh
+source /cvmfs/sft.cern.ch/lcg/releases/LCG_106/uproot/5.3.7/`arch`-el9-gcc13-opt/uproot-env.sh
 trf_getVariables.py --inputFile DAOD_PHYSLITE.art.pool.root
 rccsv=$?
 tar czf generated_csv_files.tar.gz generated_csv_files/
-- 
GitLab