3 # This script processes the following steps for n events (AliRoot v3-08-03)
4 # (use the parameter n):
5 # - the TPC and ITS slow simulation (hits+digits+clusters),
6 # - the TPC+ITS tracking,
7 # - the TPC and ITS PID
10 if [ $# = 0 ]; then nev=1; else nev=$1; fi
11 if [ $nev = 0 ]; then nev=1; fi
12 # delete eventual old files from the last run
13 echo "Start simulation for " $nev " event(s)"
14 $ALICE_ROOT/ITS/AliITSDeleteOldFiles.sh
16 # run the hit generation
17 aliroot -q -b "$ALICE_ROOT/macros/grun.C($nev)"
20 aliroot -q -b "$ALICE_ROOT/TPC/AliTPCHits2Digits.C($nev)"
23 aliroot -q -b "$ALICE_ROOT/ITS/AliITSMakeSDigits.C($nev)"
24 aliroot -q -b "$ALICE_ROOT/ITS/AliITSSDigits2Digits.C"
25 # create reconstructed points for the ITS
26 aliroot -q -b "$ALICE_ROOT/ITS/AliITSDigits2RecPoints.C"
28 # do the TPC+ITS tracking
30 #bad: aliroot -q -b "$ALICE_ROOT/ITS/AliBarrelReconstructionV2.C($1)"
31 aliroot -q -b "$ALICE_ROOT/ITS/AliBarrelReconstructionV2.C($nev)"
33 # Do the PID procedure for the ITS. The output file AliITStrackV2Pid.root is
34 # created with the information for each track:
35 # the ITS ADC trancated mean signal, the particle reconstructed momentum,
36 # the probable weights for the different particle kinds (electron, pion, kaon,
37 # proton). These weights are under study now.
39 aliroot -q -b "$ALICE_ROOT/ITS/AliITSSavePIDV2.C(0,$[$nev-1])"
41 # This last line checks the ITS PID only, i.e. creates and draws
42 #the dEdx-momentum plot (comment if it's not necessary)
43 aliroot "$ALICE_ROOT/ITS/AliITSScanPIDV2.C(0,$[$nev-1])"