Commit 4764a6e1 authored by Spyros Argyropoulos's avatar Spyros Argyropoulos
Browse files

Fix run_athena when running with multiple GRID files #154

parent b64cf497
Pipeline #3250094 passed with stages
in 1 minute and 10 seconds
......@@ -134,7 +134,39 @@ if [[ ! -z $inputGeneratorFile || ! -z $inputEVNT_PreFile ]] ; then
fi
# If there is a GRID file then copy it to the directory where we run athena
GRIDfile=$(ls ../$DSID/*.GRID.tar.gz 2>/dev/null)
# First we need to construct the filename from the ecmEnergy (there might be more than 1 GRID files in the DSID dir)
case "$ecmEnergy" in
14000|14000.)
GRIDPREFIX="14TeV"
;;
13000|13000.)
GRIDPREFIX="13TeV"
;;
13600+|13600.)
GRIDPREFIX="13p6TeV"
;;
8000|8000.)
GRIDPREFIX="8TeV"
;;
8160|8160.)
GRIDPREFIX="8p16TeV"
;;
7000|7000.)
GRIDPREFIX="7TeV"
;;
5000|5000.)
GRIDPREFIX="5TeV"
;;
2760|2760.)
GRIDPREFIX="2p76TeV"
;;
*)
echo "ERROR: unknown ecmEnergy: $ecmEnergy"
exit 1
;;
esac
GRIDfile=$(ls ../$DSID/mc*_$GRIDPREFIX.*.GRID.tar.gz 2>/dev/null)
if [ ! -z "$GRIDfile" ] ; then
link=$GRIDfile
# We need to iterate here to resolve relative links
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment