5 export BASE_DIR=/local/home/offline/onlineReco
6 export RECO_DIR=$BASE_DIR/reco
9 ulimit -c 100000000000000
11 #----------------------------------------------------------------------
12 # check that no other instances of online reconstruction are running at the same time!
14 PIDFILE=$BASE_DIR/current.pid
18 echo "Lock file $PIDFILE found. Checking process $OLDPID"
21 if [ "$pidcheck" -eq "1" ]
23 echo "Process $OLDPID done, removing file"
26 echo "Process $OLDPID still running, exiting now!"
31 PROCNAME=`basename $0`
32 CURPID=`pgrep $PROCNAME`
33 echo "current process pid = " $CURPID
34 echo $CURPID > $PIDFILE
36 #------------------------------------------------------------------------
37 # init GRID environment
39 #echo; echo 'Init GRID environment...'
42 #------------------------------------------------------------------------
47 export BUILD_DIR=$BASE_DIR/build
48 source $BUILD_DIR/setenv.sh
49 source /opt/date/setup.sh
50 source /opt/dim/setup.sh
53 echo Root is: `root-config --version`
54 echo AliRoot is: `aliroot --version`
57 if [ ! -e $RECO_DIR/log ]
59 mkdir -p $RECO_DIR/log
67 aliroot -b -q $ALICE_ROOT/MONITOR/onlineReco.C\(\"listen\",\"$ALICE_ROOT/test/cosmic/rec.C\"\) | tee rec.log
68 RUNNUMBER=`grep "I-AliCDBManager::Print: Run number =" rec.log | cut -d ";" -f 1 | awk '{print $5}'`
69 mv rec.log log/run$RUNNUMBER.log
73 aliroot -b -q $ALICE_ROOT/MONITOR/onlineReco.C\(\"$1\",\"$ALICE_ROOT/test/cosmic/rec.C\"\) | tee rec.log
74 RUNNUMBER=`grep "I-AliCDBManager::Print: Run number =" rec.log | cut -d ";" -f 1 | awk '{print $5}'`
75 mv rec.log log/run$RUNNUMBER.log