]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/macros/runPassX.sh
Changing to centrality dependent corrections
[u/mrichter/AliRoot.git] / ANALYSIS / macros / runPassX.sh
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
25 #entries=$2
26 #runnum=$3
27
28 echo File to be  processed $1
29 echo Number of events to be processed $entries
30
31 echo ">>>>>>>>> PATH is..."
32 echo $PATH
33 echo ">>>>>>>>> LD_LIBRARY_PATH is..."
34 echo $LD_LIBRARY_PATH
35 echo ">>>>>>>>> rec.C is..."
36 cat rec.C
37 echo
38
39 echo ">>>>>>> Running AliRoot to reconstruct $1. Run number is $runnum..."
40 aliroot -l -b -q rec.C\(\"alien://$1\"\) 2>&1 | tee rec.log
41
42 echo ">>>>>>> Running AliRoot to make calibration..."
43 aliroot -l -b -q  runCalibTrain.C\(\"$runnum\"\)   2>&1 | tee calib.log
44
45 echo ">>>>>>> Running AliRoot to generate Tags..."
46 aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log