3 [ -d reco/local ] || mkdir reco/local
4 [ -d reco/log ] || mkdir reco/log
6 if [ "$1" == "-local" ] && [ ! -z $2 ]
17 echo "Reconstructing into reco/local/run$2 and redirecting output to the file reco/local/run$2/stdout"
19 unbuffer aliroot -q ../../rec.C\($2,$nev,$fev\) 2>&1 | tee stdout
23 if [ "$1" != "-force" ]
25 pgrep aliroot > /dev/null
28 echo "Error: You can only start one rec.sh at a time. Please wait for the other session to terminate or close it."
35 [ -z $1 ] && { echo "Usage: rec.sh [-local] <run_number>"; exit 1; }
41 aliroot -q run.C\($1,$nev,$fev\)