11 dataset=/alice/sim/LHC10f8a_130844
15 analysismode=9; #SPD + field on
21 rejectBGV0Trigger=kFALSE
22 useTrackCentralityCut=kFALSE
29 This scripts runs the mupliplicity analysis and the trigger study task
32 Mode control, at least one of the following options should be used
33 -r <mode> Run the task
34 Modes [default=$runmode]:
39 -s Run the trigger study task (by default it runs the multiplicity analysis)
41 -w nworkers Set the number of worker nodes
42 -n <nev> Number of events to be analized
44 -d <dataset> Dataset or data collection (according to run mode) [default=$dataset]
45 - local mode: a single ESD file, an xml collection of files on
46 grid or a text file with a ESD per line
48 - grid mode: a directory on alien
49 Options specific to the multiplicity analysis
50 -b <bin> Set centrality bin [default=$centrBin]
51 -e <estimator> Set centrality estimator [default=$centrEstimator]
53 - V0M = V0 multiplicity
54 - FMD = FMD raw multiplicity
56 - TKL = N. of tracklets
57 - CL0 = N. of clusters in layer 0
58 - V0MvsFMD = correlation between V0 and FMD
59 - TKLvsV0 = correlation between tracklets and V0
60 - ZEMvsZDC = correlation between ZEM and ZDC
61 -y <min,max> Select centrality based on "good tracks" rather than on centrality
62 estimator [off by default]
63 -o <option> Misc option [default=$option]
65 - SAVE: Move results to a different output folder*
66 - ITSsa: Use ITSsa tracks
67 - TPC: Use TPC only tracks
68 - NOMCKINE: Skip MC kinematics (runs way faster)
69 * == can be used in trigger studies task
70 -t <option> Command line option for root [defaul=$ropt]
71 -m Use this to run on Monte Carlo
72 -x <suffix> Set a custom suffix in the histo manager
76 Options specific to the trigger study task
77 -k <ntracklets> Max number of tracklets to fill eta and pt
78 distributions [default=$ntrackletsTrigger]
79 -v Reject BG with the V0
84 while getopts "x:sr:cgmd:o:w:n:e:b:t:k:vy:" opt; do
91 useTrackCentralityCut=kTRUE
92 trackMin=${OPTARG%%,*}
93 trackMax=${OPTARG##*,}
99 ntrackletsTrigger=$OPTARG
105 rejectBGV0Trigger=kTRUE
120 centrEstimator=$OPTARG
142 echo "Invalid option: -$OPTARG" >&2
147 echo "Option -$OPTARG requires an argument." >&2
154 if [ "$run" = "$correct" ]
156 echo "One and only one option between -r and -c must be selected"
162 if [ "$run" = "yes" ]
164 if [ "$runTriggerStudy" = "yes" ]
166 root $ropt runTriggerStudy.C\(\"$dataset\",$nev,$offset,$debug,$runmode,$isMC,$ntrackletsTrigger,$rejectBGV0Trigger,\"$option\",$workers\)
168 root $ropt run.C\(\"$dataset\",$nev,$offset,$debug,$runmode,$isMC,$centrBin,\"$centrEstimator\",$useTrackCentralityCut,$trackMin,$trackMax,\"$option\",\"$customSuffix\",$workers\)
172 if [ "$correct" = "yes" ]
174 echo "To be implemented"