]>
Commit | Line | Data |
---|---|---|
8c267534 | 1 | #!/bin/bash |
2 | ||
3 | # Script to run: | |
4 | # 1. reconstruction | |
5 | # 2. calibration and friend track filtering | |
6 | # 3. tag creation | |
7 | # | |
8 | # Files assumed to be in working directory: | |
9 | # rec.C - reconstruction macro | |
10 | # runCalibTrain.C - calibration/filtering macro | |
11 | # Arguments: | |
12 | # 1 - raw data file name | |
13 | # 2 - number of events to be processed | |
14 | # 3 - run number | |
15 | ||
16 | # example: | |
17 | # runPassX.sh raw.root 50 104892 | |
18 | ||
19 | #ALIEN setting | |
20 | #entries=1000 | |
21 | # $1 = raw input filename | |
22 | #runnum=`echo $1 | cut -d "/" -f 6` | |
23 | ||
24 | #Local setting : setting variables | |
25 | ||
26 | entries=$2 | |
27 | runnum=$3 | |
28 | source $HOME/alienSetup.sh | |
29 | ||
30 | echo File to be processed $1 | |
31 | echo Number of events to be processed $entries | |
32 | echo Run mumber $runnum | |
33 | ||
34 | echo ALICE_ROOT = $ALICE_ROOT | |
35 | echo AliROOT = $AliROOT | |
36 | cp $ALICE_ROOT/.rootrc ~/.rootrc | |
37 | cp $ALICE_ROOT/.rootrc $HOME | |
38 | #cat $HOME/.rootrc | |
39 | export GRID_TOKEN=OK | |
40 | ||
41 | echo ">>>>>>>>> PATH is..." | |
42 | echo $PATH | |
43 | echo ">>>>>>>>> LD_LIBRARY_PATH is..." | |
44 | echo $LD_LIBRARY_PATH | |
45 | echo ">>>>>>>>> rec.C is..." | |
46 | cat rec.C | |
47 | echo | |
48 | ||
49 | ||
50 | echo | |
51 | echo ">>>>>>> Running AliRoot to reconstruct $1. Run number is $runnum..." | |
52 | echo | |
53 | if [ -e AliESDs.root ]; then | |
54 | echo AliESDs.root exist | |
55 | ls -al AliESD* | |
56 | else | |
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 | |
61 | fi | |
62 | ||
63 | echo | |
64 | echo ">>>>>>> Running AliRoot to make calibration..." | |
65 | echo | |
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 | |
68 | ||
69 | echo | |
70 | echo ">>>>>>> Running AliRoot to generate Tags..." | |
71 | echo | |
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 |