11 dataset=/alice/sim/LHC10f8a_130844
15 analysismode=9; #SPD + field on
21 rejectBGV0Trigger=kFALSE
22 useTrackCentralityCut=0
38 This scripts runs the mupliplicity analysis and the trigger study task
41 Mode control, at least one of the following options should be used
42 -r <mode> Run the task
43 Modes [default=$runmode]:
47 -c <data,mc> Run the correction data and MC are names of the folders.
48 ./output/ is added automatically in front of the folder names
49 -s Run the trigger study task (by default it runs the multiplicity analysis)
51 -w nworkers Set the number of worker nodes
52 -n <nev> Number of events to be analized
54 -d <dataset> Dataset or data collection (according to run mode) [default=$dataset]
55 - local mode: a single ESD file, an xml collection of files on
56 grid or a text file with a ESD per line
58 - grid mode: a directory on alien
60 Options specific to the multiplicity analysis
61 -l Run over all centrality bins
62 -o <option> Misc option [default=$option]
64 - SAVE: Move results to a different output folder*
65 - DCA: Use DCA cut with global tracks
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
74 == The following options are only valid if running on a single bin ==
75 -b <bin> Set centrality bin [default=$centrBin]
76 -e <estimator> Set centrality estimator [default=$centrEstimator]
78 - V0M = V0 multiplicity
79 - FMD = FMD raw multiplicity
81 - TKL = N. of tracklets
82 - CL0 = N. of clusters in layer 0
83 - V0MvsFMD = correlation between V0 and FMD
84 - TKLvsV0 = correlation between tracklets and V0
85 - ZEMvsZDC = correlation between ZEM and ZDC
86 -y <min,max> Select centrality based on "good tracks" rather than on centrality
87 estimator [off by default]
88 -0 <min,max> Select centrality based on v0 amplitude range rather than on centrality
89 estimator [off by default]
90 -2 <min,max> Select centrality based on SPD outer layer clusters rather than on centrality
91 estimator [off by default]
93 Options specific to the trigger study task
94 -k <ntracklets> Max number of tracklets to fill eta and pt
95 distributions [default=$ntrackletsTrigger]
96 -v Reject BG with the V0
97 Options specific for the corrections
98 -z <zmin,zmax> Change vertex Z range [default = $vzMin,$vzMax]
99 -a <etamin,etamax> Change eta range [default = $etaMin,$etaMax]
100 -p <npart> Number of participants, used only for dNdeta/npart [default=$npart]
101 -k <weakFrac> Scale ration secondaries from strangeness/all rec by this factor [default=$weakFactor]
106 while getopts "x:sr:c:gmd:o:w:n:e:b:t:k:vy:0:2:hz:a:l" opt; do
116 useTrackCentralityCut=1
117 trackMin=${OPTARG%%,*}
118 trackMax=${OPTARG##*,}
121 useTrackCentralityCut=2
122 trackMin=${OPTARG%%,*}
123 trackMax=${OPTARG##*,}
126 useTrackCentralityCut=3
127 trackMin=${OPTARG%%,*}
128 trackMax=${OPTARG##*,}
137 ntrackletsTrigger=$OPTARG
144 rejectBGV0Trigger=kTRUE
148 dataDir="./output/${OPTARG%%,*}"
149 mcDir="./output/${OPTARG##*,}"
169 centrEstimator=$OPTARG
191 echo "Invalid option: -$OPTARG" >&2
196 echo "Option -$OPTARG requires an argument." >&2
203 if [ "$run" = "$correct" ]
205 echo "One and only one option between -r and -c must be selected"
211 if [ "$run" = "yes" ]
213 if [ "$runTriggerStudy" = "yes" ]
215 root $ropt runTriggerStudy.C\(\"$dataset\",$nev,$offset,$debug,$runmode,$isMC,$ntrackletsTrigger,$rejectBGV0Trigger,\"$option\",$workers\)
217 root $ropt run.C\(\"$dataset\",$nev,$offset,$debug,$runmode,$isMC,$centrBin,\"$centrEstimator\",$useTrackCentralityCut,$trackMin,$trackMax,\"$option\",\"$customSuffix\",$workers,$useSingleBin\)
221 if [ "$correct" = "yes" ]
223 root $ropt correct.C+\(\"$dataDir\",\"$mcDir\",$vzMin,$vzMax,$etaMin,$etaMax,$npart,$weakFactor\);