Skip to content
Snippets Groups Projects

ecal and hcal hits reconstruction

Merged Wouter Deconinck requested to merge reconstruction-ecal-hcal into master
Files
6
+ 9
12
@@ -84,19 +84,16 @@ echo "Running the digitization and reconstruction"
@@ -84,19 +84,16 @@ echo "Running the digitization and reconstruction"
## - JUGGLER_DETECTOR: detector package (part of global environment)
## - JUGGLER_DETECTOR: detector package (part of global environment)
export JUGGLER_SIM_FILE=${SIM_FILE}
export JUGGLER_SIM_FILE=${SIM_FILE}
export JUGGLER_REC_FILE=${REC_FILE}
export JUGGLER_REC_FILE=${REC_FILE}
xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv \
for rec in options/*.py ; do
gaudirun.py options/reconstruction.py
unset tag
## on-error, first retry running juggler again as there is still a random
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
## crash we need to address FIXME
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
 
xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv \
 
gaudirun.py ${rec}
 
done
if [ "$?" -ne "0" ] ; then
if [ "$?" -ne "0" ] ; then
echo "Juggler crashed, retrying..."
echo "ERROR running juggler"
xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv \
exit 1
gaudirun.py options/reconstruction.py \
2>&1 > ${REC_LOG}
if [ "$?" -ne "0" ] ; then
echo "ERROR running juggler, both attempts failed"
exit 1
fi
fi
fi
## =============================================================================
## =============================================================================
Loading