ATO-98 - connect distortion trees - with custom description ()
[u/mrichter/AliRoot.git] / TPC / BarrelTPCmi.sh
CommitLineData
0927c0cd 1#!/bin/sh
2# This script processes the following steps for n events
3# (use the parameter n):
4# - the TPC simulation and tracking (Marian Ivanov version),
5# - the TPC PID,
6# - the AliTPCtracksPid.root is created with the following information:
7# fLabel - track number
8# fPcode - particle code after the TPC PID
9# fMom - particle momentum (from the AliTPCtracks.root)
10# fLam - particle lambder angle (from the AliTPCtracks.root)
11# fPhi - particle phi angle (from the AliTPCtracks.root)
12# fSignal- TPC signal (mips)
13# fWpi - the PID weight for the identified pion
14# fWk - the PID weight for the identified kaon
15# fWp - the PID weight for the identified proton
16# and the AliTPCScanPID.C is the example of macros to read the PID
17# information.
18# See PIDplot.ps after run of this script.
19# (Dubna , Aug 2002, Jan 2003)
20#
21if [ $# = 0 ]; then nev=1; else nev=$1; fi
22if [ $nev = 0 ]; then nev=1; fi
23# delete eventual old files from the last run
24echo "Start simulation for " $nev " event(s)"
25rm -f *.root PIDplot.ps
26#
27# run the hit generation
28aliroot -q -b "$ALICE_ROOT/macros/grun.C($nev)"
29#
30# TPC simulation
31aliroot -q -b "$ALICE_ROOT/TPC/AliTPCHits2Digits.C($nev)"
32
33# TPC tracking (MI version)
34aliroot -q -b "$ALICE_ROOT/TPC/AliTPCFindClustersMI.C($nev)"
35aliroot -q -b "$ALICE_ROOT/TPC/AliTPCFindTracksMI.C($nev)"
36#
37# PID in TPC
38aliroot -q -b "AliTPCSavePID.C($nev)"
39aliroot -q -b "AliTPCScanPID.C($nev)"
40#
41
42