2 # This script processes the following steps for n events
3 # (use the parameter n):
4 # - the TPC and ITS slow simulation (hits+digits+clusters),
5 # - the TPC+ITS tracking,
6 # - the TPC and ITS PID
9 # delete eventual old files from the last run
12 # run the hit generation
13 aliroot -q -b "$ALICE_ROOT/macros/grun.C($1)"
16 aliroot -q -b "$ALICE_ROOT/TPC/AliTPCHits2Digits.C($1)"
19 aliroot -q -b "$ALICE_ROOT/ITS/AliITSHits2DigitsDefault.C"
21 # create reconstructed points for the ITS
22 aliroot -q -b "$ALICE_ROOT/ITS/ITSDigitsToClusters.C(0,$[$1-1])"
24 # do the TPC+ITS tracking
25 aliroot -q -b "$ALICE_ROOT/ITS/AliBarrelReconstructionV2.C($1)"
27 # Do the PID procedure for the ITS. The output file AliITStrackV2Pid.root is
28 # created with the information for each track:
29 # the ITS ADC trancated mean signal, the particle reconstructed momentum,
30 # the probable weights for the different particle kinds (electron, pion, kaon,
31 # proton). These weights are under study now.
33 aliroot -q -b "$ALICE_ROOT/ITS/save_pidV2.C(0,$[$1-1])"
35 # This last line checks the ITS PID only, i.e. creates and draws
36 #the dEdx-momentum plot (comment if it's not necessary)
37 aliroot "$ALICE_ROOT/ITS/scan_pidV2.C(0,$[$1-1])"