5 # 2. calibration and friend track filtering
8 # Files assumed to be in working directory:
9 # rec.C - reconstruction macro
10 # runCalibTrain.C - calibration/filtering macro
12 # 1 - raw data file name
13 # 2 - number of events to be processed
17 # runPassX.sh raw.root 50 104892
21 # $1 = raw input filename
22 #runnum=`echo $1 | cut -d "/" -f 6`
24 #Local setting : setting variables
28 source $HOME/alienSetup.sh
30 echo File to be processed $1
31 echo Number of events to be processed $entries
32 echo Run mumber $runnum
34 echo ALICE_ROOT = $ALICE_ROOT
35 echo AliROOT = $AliROOT
36 cp $ALICE_ROOT/.rootrc ~/.rootrc
37 cp $ALICE_ROOT/.rootrc $HOME
41 echo ">>>>>>>>> PATH is..."
43 echo ">>>>>>>>> LD_LIBRARY_PATH is..."
45 echo ">>>>>>>>> rec.C is..."
51 echo ">>>>>>> Running AliRoot to reconstruct $1. Run number is $runnum..."
53 if [ -e AliESDs.root ]; then
54 echo AliESDs.root exist
57 echo aliroot -l -b -q rec.C\(\"$1\",$2\) 2>&1 | tee rec.log
58 aliroot -l -b -q rec.C\(\"$1\",$2\) 2>&1 | tee rec.log
59 echo aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log
60 aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log
64 echo ">>>>>>> Running AliRoot to make calibration..."
66 echo aliroot -l -b -q runCalibTrain.C\($runnum\) 2>&1 | tee calib.log
67 aliroot -l -b -q runCalibTrain.C\($runnum\) 2>&1 | tee calib.log
70 echo ">>>>>>> Running AliRoot to generate Tags..."
72 echo aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log
73 #aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log