]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/testMC/submitMC.sh
Adding the test script to check the reconstruction
[u/mrichter/AliRoot.git] / TPC / testMC / submitMC.sh
1 #!/bin/sh
2
3 # 1 argument      - the path to the environment setup
4 # 2 argument      - the job ID
5 # 3 argument      - path to Config.C  file
6 # 4 argument      - path to TPC database files
7 # 5 argument      - number of events in the file
8 # 6 argument      - output path
9 # 7 argument      - reco type
10 # 8 argument      - working directory
11
12
13 # EXAMPLE
14 # 1.
15 # $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 2 $ALICE_ROOT/TPC/testMC/ConfigHPT.C  0  2 hpt 0 `pwd`
16
17 # $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 2 $ALICE_ROOT/TPC/testMC/ConfigPP.C  0  2 pp 0 `pwd`
18
19
20
21
22
23 # 1.b 
24 # $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0  $ALICE_ROOT/TPC/testMC/ConfigHPT1.C  0  10 hpt1 0 `pwd`
25 # 2.
26 # $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0  $ALICE_ROOT/TPC/testMC/Config_AliGenCosmicsParam.C   0  2 cosmic 2
27 # 3. $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0  $ALICE_ROOT/TPC/testMC/ConfigHM.C  0  1 hm 0
28 # $ALICE_ROOT/TPC/testMC/submitMC.sh /u/miranov/.balice64HEAD0108 0  $ALICE_ROOT/TPC/testMC/ConfigLM.C  0  1 lm 0
29
30
31
32 #
33 # 1  /u/miranov/.balice64v4-06-Release   # setup aliroot -root
34 # 2  0                                   # local directory path
35 # 3 \$ALICE_ROOT/macros/ConfigHPT.C      # path to the Config file
36 # 4 0                                    # path to particular TPC calib files
37 # 5 2                                    # number of events per file
38 # 6 hpt                                  # path where wi will write the output
39
40
41 cd $8
42 mkdir $6
43 cd $6
44 echo PWD `pwd` 
45
46 echo HOSTNAME $HOSTNAME
47 # 1 SETUP given ROOT and ALIROOT
48 echo   $1
49 source $1
50 echo  $ROOTSYS
51 which root.exe
52 which aliroot
53   
54 mkdir $2
55 cd $2
56 cp ~/rootlogon.C .
57 echo Job ID  $2
58 echo
59 echo PWD `pwd`
60  
61 #
62 #
63 #####################################################################
64 echo SUBMITING MACRO
65 echo "$ALICE_ROOT/TPC/testMC/sim.C(\"$3\",\"$4\",$5)"
66 echo
67 command aliroot  -q -b "$ALICE_ROOT/TPC/testMC/sim.C(\"$3\",\"$4\",$5)"
68 echo
69 echo 
70 #
71 #
72 #
73 rm *.Hits*root
74 rm *.SDi*root
75 #####################################################################
76 echo 
77 echo SUBMITING  RECONSTRUCTION MACRO
78 echo "$ALICE_ROOT/TPC/testMC/recMC.C"
79 rm AliESD*
80 command aliroot  -q -b  "$ALICE_ROOT/TPC/testMC/recMC.C"
81
82
83 command aliroot  -q -b "$ALICE_ROOT/TPC/testMC/compGen.C"
84 command aliroot  -q -b "$ALICE_ROOT/TPC/testMC/compRec.C"