]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/macros/runPassX.sh
new production macros (Mihaela)
[u/mrichter/AliRoot.git] / ANALYSIS / macros / runPassX.sh
CommitLineData
0309ed6a 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
20entries=1000
21# $1 = raw input filename
22runnum=`echo $1 | cut -d "/" -f 6`
23
24#Local setting
25#entries=$2
26#runnum=$3
27
28echo File to be processed $1
29echo Number of events to be processed $entries
30
0309ed6a 31echo ">>>>>>>>> PATH is..."
32echo $PATH
33echo ">>>>>>>>> LD_LIBRARY_PATH is..."
34echo $LD_LIBRARY_PATH
35echo ">>>>>>>>> rec.C is..."
36cat rec.C
37echo
38
39echo ">>>>>>> Running AliRoot to reconstruct $1. Run number is $runnum..."
38a41881 40aliroot -l -b -q rec.C\(\"alien://$1\"\) 2>&1 | tee rec.log
0309ed6a 41
42echo ">>>>>>> Running AliRoot to make calibration..."
38a41881 43aliroot -l -b -q runCalibTrain.C\(\"$runnum\"\) 2>&1 | tee calib.log
0309ed6a 44
45echo ">>>>>>> Running AliRoot to generate Tags..."
46aliroot -l -b -q tag.C\(\) 2>&1 | tee tag.log