From 57cf91bad35edb474f63c04dd02eaa0b419f14d6 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Tue, 14 Jun 2022 23:07:35 -0500 Subject: [PATCH] Use JUGGLER_DETECTOR_CONFIG for xml --- benchmarks/dis/analysis-only.sh | 2 +- benchmarks/dis/dis.sh | 2 +- benchmarks/dvcs/dvcs.sh | 2 +- benchmarks/dvmp/dvmp.sh | 4 ++-- benchmarks/single/simulate.sh | 2 +- benchmarks/synchrotron/synchrotron.sh | 2 +- benchmarks/tcs/tcs.sh | 2 +- benchmarks/u_omega/u_omega.sh | 2 +- options/reconstruction.ecal.py | 4 ++-- options/reconstruction.hcal.py | 4 ++-- options/reconstruction.py | 4 ++-- options/reconstruction.raw.py | 4 ++-- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/benchmarks/dis/analysis-only.sh b/benchmarks/dis/analysis-only.sh index 15ffe96c..1cff2044 100755 --- a/benchmarks/dis/analysis-only.sh +++ b/benchmarks/dis/analysis-only.sh @@ -62,7 +62,7 @@ echo "Running Geant4 simulation" # --filter.tracker edep0 \ # -v WARNING \ # --numberOfEvents ${JUGGLER_N_EVENTS} \ -# --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ +# --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ # --inputFiles ${GEN_FILE} \ # --outputFile ${SIM_FILE} #if [ "$?" -ne "0" ] ; then diff --git a/benchmarks/dis/dis.sh b/benchmarks/dis/dis.sh index 2a2ae0a8..43897bed 100755 --- a/benchmarks/dis/dis.sh +++ b/benchmarks/dis/dis.sh @@ -67,7 +67,7 @@ ddsim --runType batch \ --filter.tracker edep0 \ -v INFO \ --numberOfEvents ${JUGGLER_N_EVENTS} \ - --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ + --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ --inputFiles ${GEN_FILE} \ --outputFile ${SIM_FILE} if [ "$?" -ne "0" ] ; then diff --git a/benchmarks/dvcs/dvcs.sh b/benchmarks/dvcs/dvcs.sh index 4b26aef0..73c6c89f 100644 --- a/benchmarks/dvcs/dvcs.sh +++ b/benchmarks/dvcs/dvcs.sh @@ -105,7 +105,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then --filter.tracker edep0 \ -v ERROR \ --numberOfEvents ${JUGGLER_N_EVENTS} \ - --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ + --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ --inputFiles "${JUGGLER_MC_FILE}" \ --outputFile ${JUGGLER_SIM_FILE} if [[ "$?" -ne "0" ]] ; then diff --git a/benchmarks/dvmp/dvmp.sh b/benchmarks/dvmp/dvmp.sh index 304e792c..ce165df3 100755 --- a/benchmarks/dvmp/dvmp.sh +++ b/benchmarks/dvmp/dvmp.sh @@ -65,7 +65,7 @@ ddsim --runType batch \ --filter.tracker edep0 \ -v WARNING \ --numberOfEvents ${JUGGLER_N_EVENTS} \ - --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ + --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ --inputFiles ${GEN_FILE} \ --outputFile ${SIM_FILE} if [ "$?" -ne "0" ] ; then @@ -106,7 +106,7 @@ cat << EOF > ${CONFIG} "rec_file": "${REC_FILE}", "vm_name": "${LEADING}", "decay": "${DECAY}", - "detector": "${JUGGLER_DETECTOR}", + "detector": "${JUGGLER_DETECTOR_CONFIG}", "output_prefix": "${RESULTS_PATH}/${PLOT_TAG}", "test_tag": "${LEADING}_${DECAY}_${BEAM_TAG}" } diff --git a/benchmarks/single/simulate.sh b/benchmarks/single/simulate.sh index 5b06b0c0..6466beca 100644 --- a/benchmarks/single/simulate.sh +++ b/benchmarks/single/simulate.sh @@ -11,7 +11,7 @@ ddsim --runType run \ --numberOfEvents ${JUGGLER_N_EVENTS} \ --part.minimalKineticEnergy 1*TeV \ --filter.tracker edep0 \ - --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ + --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ --outputFile ${JUGGLER_SIM_FILE} if [[ "$?" -ne "0" ]] ; then echo "ERROR running ddsim" diff --git a/benchmarks/synchrotron/synchrotron.sh b/benchmarks/synchrotron/synchrotron.sh index 9de437b8..45ff4edd 100644 --- a/benchmarks/synchrotron/synchrotron.sh +++ b/benchmarks/synchrotron/synchrotron.sh @@ -105,7 +105,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then --filter.tracker edep0 \ -v ERROR \ --numberOfEvents ${JUGGLER_N_EVENTS} \ - --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ + --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ --inputFiles ${JUGGLER_MC_FILE} \ --outputFile ${JUGGLER_SIM_FILE} if [[ "$?" -ne "0" ]] ; then diff --git a/benchmarks/tcs/tcs.sh b/benchmarks/tcs/tcs.sh index c9e66ecc..63b384c7 100644 --- a/benchmarks/tcs/tcs.sh +++ b/benchmarks/tcs/tcs.sh @@ -126,7 +126,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then --filter.tracker edep0 \ -v ERROR \ --numberOfEvents ${JUGGLER_N_EVENTS} \ - --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ + --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ --inputFiles "${JUGGLER_MC_FILE}" \ --outputFile ${JUGGLER_SIM_FILE} if [ "$?" -ne "0" ] ; then diff --git a/benchmarks/u_omega/u_omega.sh b/benchmarks/u_omega/u_omega.sh index 8382606f..1052c787 100644 --- a/benchmarks/u_omega/u_omega.sh +++ b/benchmarks/u_omega/u_omega.sh @@ -104,7 +104,7 @@ if [[ -n "${DO_SIM}" || -n "${DO_ALL}" ]] ; then --filter.tracker edep0 \ -v ERROR \ --numberOfEvents ${JUGGLER_N_EVENTS} \ - --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR}.xml \ + --compactFile ${DETECTOR_PATH}/${JUGGLER_DETECTOR_CONFIG}.xml \ --inputFiles "${JUGGLER_MC_FILE}" \ --outputFile ${JUGGLER_SIM_FILE} if [[ "$?" -ne "0" ]] ; then diff --git a/options/reconstruction.ecal.py b/options/reconstruction.ecal.py index fc0aef8c..120f4c83 100644 --- a/options/reconstruction.ecal.py +++ b/options/reconstruction.ecal.py @@ -7,8 +7,8 @@ from GaudiKernel.SystemOfUnits import MeV, GeV, mm, cm, mrad import json detector_name = "athena" -if "JUGGLER_DETECTOR" in os.environ : - detector_name = str(os.environ["JUGGLER_DETECTOR"]) +if "JUGGLER_DETECTOR_CONFIG" in os.environ : + detector_name = str(os.environ["JUGGLER_DETECTOR_CONFIG"]) detector_path = "" if "DETECTOR_PATH" in os.environ : diff --git a/options/reconstruction.hcal.py b/options/reconstruction.hcal.py index b72fec2b..423f7684 100644 --- a/options/reconstruction.hcal.py +++ b/options/reconstruction.hcal.py @@ -7,8 +7,8 @@ from GaudiKernel.SystemOfUnits import MeV, GeV, mm, cm, mrad import json detector_name = "athena" -if "JUGGLER_DETECTOR" in os.environ : - detector_name = str(os.environ["JUGGLER_DETECTOR"]) +if "JUGGLER_DETECTOR_CONFIG" in os.environ : + detector_name = str(os.environ["JUGGLER_DETECTOR_CONFIG"]) detector_path = "" if "DETECTOR_PATH" in os.environ : diff --git a/options/reconstruction.py b/options/reconstruction.py index 6d75f0d9..3afd793f 100644 --- a/options/reconstruction.py +++ b/options/reconstruction.py @@ -8,8 +8,8 @@ import json from math import sqrt detector_name = "athena" -if "JUGGLER_DETECTOR" in os.environ : - detector_name = str(os.environ["JUGGLER_DETECTOR"]) +if "JUGGLER_DETECTOR_CONFIG" in os.environ : + detector_name = str(os.environ["JUGGLER_DETECTOR_CONFIG"]) detector_path = "" if "DETECTOR_PATH" in os.environ : diff --git a/options/reconstruction.raw.py b/options/reconstruction.raw.py index 6e4ba88d..47322563 100644 --- a/options/reconstruction.raw.py +++ b/options/reconstruction.raw.py @@ -7,8 +7,8 @@ from GaudiKernel.SystemOfUnits import MeV, GeV, mm, cm, mrad import json detector_name = "athena" -if "JUGGLER_DETECTOR" in os.environ : - detector_name = str(os.environ["JUGGLER_DETECTOR"]) +if "JUGGLER_DETECTOR_CONFIG" in os.environ : + detector_name = str(os.environ["JUGGLER_DETECTOR_CONFIG"]) detector_path = "" if "DETECTOR_PATH" in os.environ : -- GitLab