From 7a672a4aa2cf56a23710d65f3a2b6866693488f3 Mon Sep 17 00:00:00 2001 From: Chao Peng <cpeng@anl.gov> Date: Wed, 26 May 2021 13:51:18 -0500 Subject: [PATCH] update barrel emcal benchmark --- benchmarks/sampling_ecal/config.yml | 6 +++--- benchmarks/sampling_ecal/run_emcal_barrel.sh | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/benchmarks/sampling_ecal/config.yml b/benchmarks/sampling_ecal/config.yml index c919ec57..011be719 100644 --- a/benchmarks/sampling_ecal/config.yml +++ b/benchmarks/sampling_ecal/config.yml @@ -8,7 +8,7 @@ sampling_ecal_electrons: - results/ stage: run script: - - bash benchmarks/sampling_ecal/run_emcal_barrel.sh -n emcal_barrel_electrons -p "electron" + - bash benchmarks/sampling_ecal/run_emcal_barrel.sh -t emcal_barrel_electrons -p "electron" -n 1000 allow_failure: true sampling_ecal_photons: @@ -21,7 +21,7 @@ sampling_ecal_photons: - results/ stage: run script: - - bash benchmarks/sampling_ecal/run_emcal_barrel.sh -n emcal_barrel_photons -p "photon" + - bash benchmarks/sampling_ecal/run_emcal_barrel.sh -t emcal_barrel_photons -p "photon" -n 1000 allow_failure: true sampling_ecal_pions: @@ -34,6 +34,6 @@ sampling_ecal_pions: - results/ stage: run script: - - bash benchmarks/sampling_ecal/run_emcal_barrel.sh -n emcal_barrel_pions -p "pion-" + - bash benchmarks/sampling_ecal/run_emcal_barrel.sh -t emcal_barrel_pions -p "pion-" -n 1000 allow_failure: true diff --git a/benchmarks/sampling_ecal/run_emcal_barrel.sh b/benchmarks/sampling_ecal/run_emcal_barrel.sh index aaf5ab56..f6501902 100644 --- a/benchmarks/sampling_ecal/run_emcal_barrel.sh +++ b/benchmarks/sampling_ecal/run_emcal_barrel.sh @@ -1,10 +1,11 @@ #!/bin/bash -while getopts n:p:f: flag +while getopts t:p:n: flag do case "${flag}" in - n) nametag=${OPTARG};; + t) nametag=${OPTARG};; p) particle=${OPTARG};; + n) export CB_EMCAL_NUMEV=${OPTARG};; esac done @@ -69,8 +70,8 @@ CB_EMCAL_OPTION_DIR=benchmarks/sampling_ecal/options CB_EMCAL_SCRIPT_DIR=benchmarks/sampling_ecal/scripts # Run Juggler -# xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv gaudirun.py ${CB_EMCAL_OPTION_DIR}/sampling_cluster3d.py -gaudirun.py ${CB_EMCAL_OPTION_DIR}/sampling_cluster3d.py +xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv gaudirun.py ${CB_EMCAL_OPTION_DIR}/sampling_cluster3d.py +# gaudirun.py ${CB_EMCAL_OPTION_DIR}/sampling_cluster3d.py if [[ "$?" -ne "0" ]] ; then echo "ERROR running juggler" exit 1 -- GitLab