38f7c306 |
1 | #!/bin/sh |
2 | # 9 July 2002,Dubna |
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 |
8 | # (Dubnna version) |
9 | # |
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 |
15 | # |
16 | # run the hit generation |
17 | aliroot -q -b "$ALICE_ROOT/macros/grun.C($nev)" |
18 | # |
19 | # digitize TPC |
20 | aliroot -q -b "$ALICE_ROOT/TPC/AliTPCHits2Digits.C($nev)" |
21 | # |
22 | # digitize ITS |
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" |
27 | |
28 | # do the TPC+ITS tracking |
29 | |
30 | #bad: aliroot -q -b "$ALICE_ROOT/ITS/AliBarrelReconstructionV2.C($1)" |
31 | aliroot -q -b "$ALICE_ROOT/ITS/AliBarrelReconstructionV2.C($nev)" |
32 | # |
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. |
38 | # |
ff4d91a8 |
39 | aliroot -q -b "$ALICE_ROOT/ITS/AliITSSavePIDV2.C(0,$[$nev-1])" |
38f7c306 |
40 | # |
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])" |
44 | |
45 | |