diff --git a/ecal/emcal_electrons.sh b/ecal/emcal_electrons.sh index 271f8e9e95a6004359cafd3561c92128f551a7ed..ecaa1f652b2646d1957b73d5e45487e71f729432 100644 --- a/ecal/emcal_electrons.sh +++ b/ecal/emcal_electrons.sh @@ -8,6 +8,10 @@ if [[ ! -n "${JUGGLER_N_EVENTS}" ]] ; then export JUGGLER_N_EVENTS=100 fi +if [[ ! -n "${JUGGLER_INSTALL_PREFIX}" ]] ; then + export JUGGLER_INSTALL_PREFIX="/usr/local" +fi + if [[ ! -n "${E_start}" ]] ; then export E_start=0.0 fi @@ -49,7 +53,7 @@ npsim --runType batch \ --inputFiles ../${JUGGLER_FILE_NAME_TAG}.hepmc \ --outputFile ${JUGGLER_SIM_FILE} # Need to figure out how to pass file name to juggler from the commandline -xenv -x /usr/local/Juggler.xenv gaudirun.py ../ecal/options/crystal_calorimeter_reco.py +xenv -x ${JUGGLER_INSTALL_PREFIX}/Juggler.xenv gaudirun.py ../ecal/options/crystal_calorimeter_reco.py ls -l popd