]>
Commit | Line | Data |
---|---|---|
a23f7c97 | 1 | #!/bin/bash |
2 | ||
3 | # defaults | |
4 | isMC=kFALSE | |
5 | run=no | |
6 | correct=no | |
7 | nev=-1 | |
8 | offset=0 | |
9 | debug=kFALSE | |
10 | runmode=1 | |
54b31d6a | 11 | dataset=/alice/sim/LHC10f8a_130844 |
a23f7c97 | 12 | ropt="-l" |
13 | option="SAVE" | |
14 | workers=26 | |
15 | analysismode=9; #SPD + field on | |
54b31d6a | 16 | centrBin=0 |
17 | centrEstimator="V0M" | |
a23f7c97 | 18 | |
19 | give_help() { | |
20 | ||
21 | cat <<ENDOFGUIDE | |
22 | This scripts runs the mupliplicity analysis. | |
23 | ||
24 | Available options: | |
25 | Mode control, at least one of the following options should be used | |
26 | -r <mode> Run the task | |
27 | Modes [default=$runmode]: | |
28 | 0 local | |
29 | 1 caf | |
30 | -c Run the correction | |
31 | Proof settings | |
32 | -w nworkers Set the number of worker nodes | |
33 | -n <nev> Number of events to be analized | |
34 | Misc | |
35 | -d <dataset> Dataset or data collection (according to run mode) [default=$dataset] | |
54b31d6a | 36 | -b <bin> Set centrality bin [default=$centrBin] |
37 | -e <estimator> Set centrality estimator [default=$centrEstimator] | |
38 | Available choiches: | |
39 | - V0M = V0 multiplicity | |
40 | - FMD = FMD raw multiplicity | |
41 | - TRK = N. of tracks | |
42 | - TKL = N. of tracklets | |
43 | - CL0 = N. of clusters in layer 0 | |
44 | - V0MvsFMD = correlation between V0 and FMD | |
45 | - TKLvsV0 = correlation between tracklets and V0 | |
46 | - ZEMvsZDC = correlation between ZEM and ZDC | |
a23f7c97 | 47 | -o <option> Misc option [default=$option] |
48 | Available options: | |
54b31d6a | 49 | - SAVE: Move results to a different output folder |
50 | - ITSsa: Use ITSsa tracks | |
51 | - TPC: Use TPC only tracks | |
52 | - NOMCKINE: Skip MC kinematics (runs way faster) | |
a23f7c97 | 53 | -t <option> Command line option for root [defaul=$ropt] |
54 | -m Use this to run on Monte Carlo | |
55 | -g Debug mode | |
56 | -h This help | |
57 | ENDOFGUIDE | |
58 | ||
59 | } | |
60 | ||
54b31d6a | 61 | while getopts "r:cgmd:o:w:n:e:b:" opt; do |
a23f7c97 | 62 | case $opt in |
63 | r) | |
64 | run=yes | |
65 | runmode=$OPTARG | |
66 | ;; | |
67 | c) | |
68 | correct=yes | |
69 | ;; | |
70 | g) | |
71 | debug=kTRUE; | |
72 | ;; | |
73 | m) | |
74 | isMC=kTRUE | |
75 | ;; | |
76 | d) | |
77 | dataset=$OPTARG | |
78 | ;; | |
54b31d6a | 79 | e) |
80 | centrEstimator=$OPTARG | |
81 | ;; | |
82 | b) | |
83 | centrBin=$OPTARG | |
84 | ;; | |
a23f7c97 | 85 | o) |
86 | option=$OPTARG | |
87 | ;; | |
88 | t) | |
89 | ropt=$OPTARG | |
90 | ;; | |
91 | w) | |
92 | workers=$OPTARG | |
93 | ;; | |
94 | n) | |
95 | nev=$OPTARG | |
96 | ;; | |
97 | h) | |
98 | give_help | |
99 | exit 1 | |
100 | ;; | |
101 | \?) | |
102 | echo "Invalid option: -$OPTARG" >&2 | |
103 | give_help | |
104 | exit 1 | |
105 | ;; | |
106 | :) | |
107 | echo "Option -$OPTARG requires an argument." >&2 | |
108 | give_help | |
109 | exit 1 | |
110 | ;; | |
111 | esac | |
112 | done | |
113 | ||
114 | if [ "$run" = "$correct" ] | |
115 | then | |
116 | echo "One and only one option between -r and -c must be selected" | |
117 | give_help | |
118 | exit 1 | |
119 | fi | |
120 | ||
54b31d6a | 121 | |
a23f7c97 | 122 | if [ "$run" = "yes" ] |
123 | then | |
54b31d6a | 124 | root $ropt run.C\(\"$dataset\",$nev,$offset,$debug,$runmode,$isMC,$centrBin,\"$centrEstimator\",\"$option\",$workers\) |
125 | fi | |
126 | ||
127 | if [ "$correct" = "yes" ] | |
128 | then | |
129 | echo "To be implemented" | |
a23f7c97 | 130 | fi |