]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/scripts/calibPassX/runPassX.sh
ALIROOT-5634 Install all needed files
[u/mrichter/AliRoot.git] / TPC / scripts / calibPassX / runPassX.sh
CommitLineData
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
26entries=$2
27runnum=$3
28source $HOME/alienSetup.sh
29
30echo File to be processed $1
31echo Number of events to be processed $entries
32echo Run mumber $runnum
33
34echo ALICE_ROOT = $ALICE_ROOT
35echo AliROOT = $AliROOT
36cp $ALICE_ROOT/.rootrc ~/.rootrc
37cp $ALICE_ROOT/.rootrc $HOME
38#cat $HOME/.rootrc
39export GRID_TOKEN=OK
40
41echo ">>>>>>>>> PATH is..."
42echo $PATH
43echo ">>>>>>>>> LD_LIBRARY_PATH is..."
44echo $LD_LIBRARY_PATH
45echo ">>>>>>>>> rec.C is..."
46cat rec.C
47echo
48
49
50echo
51echo ">>>>>>> Running AliRoot to reconstruct $1. Run number is $runnum..."
52echo
53if [ -e AliESDs.root ]; then
54 echo AliESDs.root exist
55 ls -al AliESD*
56else
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
61fi
62
63echo
64echo ">>>>>>> Running AliRoot to make calibration..."
65echo
66echo aliroot -l -b -q runCalibTrain.C\($runnum\) 2>&1 | tee calib.log
67aliroot -l -b -q runCalibTrain.C\($runnum\) 2>&1 | tee calib.log
68
69echo
70echo ">>>>>>> Running AliRoot to generate Tags..."
71echo
72echo aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log
73#aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log