11 dataset=/alice/sim/LHC10f8a_130844
15 analysismode=9; #SPD + field on
21 rejectBGV0Trigger=kFALSE
22 useTrackCentralityCut=0
34 #OUTPATH=output.BAK2010
40 This scripts runs the mupliplicity analysis and the trigger study task
43 Mode control, at least one of the following options should be used
44 -r <mode> Run the task
45 Modes [default=$runmode]:
49 -c <data,mc> Run the correction data and MC are names of the folders.
50 ./output/ is added automatically in front of the folder names
51 -s Run the trigger study task (by default it runs the multiplicity analysis)
53 -w nworkers Set the number of worker nodes (0 == 1 worker per node)
54 -n <nev> Number of events to be analized
56 -d <dataset> Dataset or data collection (according to run mode) [default=$dataset]
57 - local mode: a single ESD file, an xml collection of files on
58 grid or a text file with a ESD per line
60 - grid mode: a directory on alien
62 Options specific to the multiplicity analysis
63 -l Run over all centrality bins
64 -o <option> Misc option [default=$option]
66 - SAVE: Move results to a different output folder*
67 - DCA: Use DCA cut with global tracks
68 - ITSsa: Use ITSsa tracks
69 - TPC: Use TPC only tracks
70 - NOMCKINE: Skip MC kinematics (runs way faster)
71 * == can be used in trigger studies task
72 -t <option> Command line option for root [defaul=$ropt]
73 -m Use this to run on Monte Carlo
74 -x <suffix> Set a custom suffix in the histo manager
76 == The following options are only valid if running on a single bin ==
77 -b <bin> Set centrality bin [default=$centrBin]
78 -e <estimator> Set centrality estimator [default=$centrEstimator]
80 - V0M = V0 multiplicity
81 - FMD = FMD raw multiplicity
83 - TKL = N. of tracklets
84 - CL0 = N. of clusters in layer 0
85 - V0MvsFMD = correlation between V0 and FMD
86 - TKLvsV0 = correlation between tracklets and V0
87 - ZEMvsZDC = correlation between ZEM and ZDC
88 -y <min,max> Select centrality based on "good tracks" rather than on centrality
89 estimator [off by default]
90 -0 <min,max> Select centrality based on v0 amplitude range rather than on centrality
91 estimator [off by default]
92 -2 <min,max> Select centrality based on SPD outer layer clusters rather than on centrality
93 estimator [off by default]
95 Options specific to the trigger study task
96 -k <ntracklets> Max number of tracklets to fill eta and pt
97 distributions [default=$ntrackletsTrigger]
98 -v Reject BG with the V0
99 Options specific for the corrections
100 -z <zmin,zmax> Change vertex Z range [default = $vzMin,$vzMax]
101 -a <etamin,etamax> Change eta range [default = $etaMin,$etaMax]
102 -p <npart> Number of participants, used only for dNdeta/npart [default=$npart]
103 -k <weakFrac> Scale ration secondaries from strangeness/all rec by this factor [default=$weakFactor]
104 -b <bin> Set centrality bin to be corrected. Only valid if you processed multiple
105 bins at one (it changes the suffix of the multPbPbtracks.root file). It it's -1,
106 a file without suffix is searched for. This options applyies both to the data and to the
107 MC file. [default=$centrBin]
112 while getopts "x:sr:c:gmd:o:w:n:e:b:t:k:vy:0:2:hz:a:lp:" opt; do
122 useTrackCentralityCut=1
123 trackMin=${OPTARG%%,*}
124 trackMax=${OPTARG##*,}
127 useTrackCentralityCut=2
128 trackMin=${OPTARG%%,*}
129 trackMax=${OPTARG##*,}
132 useTrackCentralityCut=3
133 trackMin=${OPTARG%%,*}
134 trackMax=${OPTARG##*,}
143 ntrackletsTrigger=$OPTARG
150 rejectBGV0Trigger=kTRUE
154 dataDir="./$OUTPATH/${OPTARG%%,*}"
155 mcDir="./$OUTPATH/${OPTARG##*,}"
175 centrEstimator=$OPTARG
197 echo "Invalid option: -$OPTARG" >&2
202 echo "Option -$OPTARG requires an argument." >&2
209 if [ "$run" = "$correct" ]
211 echo "One and only one option between -r and -c must be selected"
217 if [ "$run" = "yes" ]
219 if [ "$runTriggerStudy" = "yes" ]
221 root $ropt runTriggerStudy.C\(\"$dataset\",$nev,$offset,$debug,$runmode,$isMC,$ntrackletsTrigger,$rejectBGV0Trigger,\"$option\",$workers\)
223 root $ropt run.C\(\"$dataset\",$nev,$offset,$debug,$runmode,$isMC,$centrBin,\"$centrEstimator\",$useTrackCentralityCut,$trackMin,$trackMax,\"$option\",\"$customSuffix\",$workers,$useSingleBin\)
227 if [ "$correct" = "yes" ]
229 root $ropt correct.C+\(\"$dataDir\",\"$mcDir\",$vzMin,$vzMax,$etaMin,$etaMax,$npart,$weakFactor,$centrBin\);