Skip to content
Snippets Groups Projects

Fix the benchmarks

Merged Whitney Armstrong requested to merge benchmark_fix into master
Files
10
#!/bin/bash
#!/bin/bash
./util/print_env.sh
print_env.sh
## To run the reconstruction, we need the following global variables:
## To run the reconstruction, we need the following global variables:
## - JUGGLER_INSTALL_PREFIX: Install prefix for Juggler (simu/recon)
## - JUGGLER_INSTALL_PREFIX: Install prefix for Juggler (simu/recon)
@@ -10,7 +10,8 @@
@@ -10,7 +10,8 @@
##
##
## You can ready options/env.sh for more in-depth explanations of the variables
## You can ready options/env.sh for more in-depth explanations of the variables
## and how they can be controlled.
## and how they can be controlled.
source options/env.sh
 
# deprecated
export JUGGLER_DETECTOR_PATH=${DETECTOR_PATH}
export JUGGLER_DETECTOR_PATH=${DETECTOR_PATH}
if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then
if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then
@@ -30,21 +31,8 @@ export JUGGLER_REC_FILE="rec_${JUGGLER_FILE_NAME_TAG}.root"
@@ -30,21 +31,8 @@ export JUGGLER_REC_FILE="rec_${JUGGLER_FILE_NAME_TAG}.root"
echo "JUGGLER_N_EVENTS = ${JUGGLER_N_EVENTS}"
echo "JUGGLER_N_EVENTS = ${JUGGLER_N_EVENTS}"
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
echo "JUGGLER_DETECTOR = ${JUGGLER_DETECTOR}"
### Build the detector constructors.
#git clone https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git
#git clone https://eicweb.phy.anl.gov/EIC/detectors/accelerator.git
#pushd ${JUGGLER_DETECTOR}
#ln -s ../accelerator/eic
#popd
#mkdir ${JUGGLER_DETECTOR}/build
#pushd ${JUGGLER_DETECTOR}/build
#cmake ../. -DCMAKE_INSTALL_PREFIX=/usr/local && make -j30 install
#popd
root -b -q "benchmarks/clustering/scripts/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
root -b -q "benchmarks/clustering/scripts/gen_central_electrons.cxx(${JUGGLER_N_EVENTS}, \"${JUGGLER_FILE_NAME_TAG}.hepmc\")"
#pushd ${JUGGLER_DETECTOR}
#ls -l
### run geant4 simulations
### run geant4 simulations
npsim --runType batch \
npsim --runType batch \
--part.minimalKineticEnergy 1000*GeV \
--part.minimalKineticEnergy 1000*GeV \
@@ -59,14 +47,13 @@ if [[ "$?" -ne "0" ]] ; then
@@ -59,14 +47,13 @@ if [[ "$?" -ne "0" ]] ; then
fi
fi
# Need to figure out how to pass file name to juggler from the commandline
# Need to figure out how to pass file name to juggler from the commandline
xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv gaudirun.py benchmarks/clustering/options/fullcaloclustering.py
gaudirun.py benchmarks/clustering/options/fullcalo_clustering.py
if [[ "$?" -ne "0" ]] ; then
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
echo "ERROR running juggler"
exit 1
exit 1
fi
fi
#pwd
mkdir -p results/clustering
#mkdir -p results/clustering
#root -b -q "benchmarks/clustering/scripts/barrel_clusters.cxx(\"${JUGGLER_REC_FILE}\")"
#root -b -q "benchmarks/clustering/scripts/barrel_clusters.cxx(\"${JUGGLER_REC_FILE}\")"
Loading