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."
38 if [ "$1" == "-ALICE_pro" ]
43 BASE=/afs/cern.ch/alice/library/afs_volumes/vol12
46 if [ "$1" == "-ALICE_new" ]
51 BASE=/afs/cern.ch/alice/library/afs_volumes/vol02
56 echo "Setting ROOT and AliRoot to $CAFROOT"
58 export ROOTSYS=$BASE/root
59 export PATH=$ROOTSYS/bin:$PATH
60 export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
62 export ALICE_ROOT=$BASE/AliRoot
63 export ALICE_TARGET=`root-config --arch`
64 export LD_LIBRARY_PATH=$ALICE_ROOT/lib/tgt_${ALICE_TARGET}:$LD_LIBRARY_PATH
65 export PATH=$ALICE_ROOT/bin/tgt_${ALICE_TARGET}:$PATH
68 [ -z $1 ] && { echo "Usage: rec.sh [-local] <run_number>"; exit 1; }
74 aliroot -q run.C\($1,$nev,$fev,\"$CAFROOT\"\)