4 #pass=/alice/data/LHC10h_000139172_p2
15 option="SAVE" #FIXME:set option
17 fitFolder="LHC10h_000137161_p1_5plus"
29 This scripts runs the the physics selection and centrality on a specified run/dataset
33 -r <mode> Run the task
38 -d <run or dataset> Run number(s) (grid) or dataset (caf) or file name (local)
39 Local filename can be an xml collection of files on alies,
40 a single esd, or a text file with an ESD filename per line
41 -m Set if runnning on MC
42 -t <rootopt> Options passed to root
43 -l <list.txt> Process sequentially all runs/dataset listed in the file
44 (one entry per line). If you use this option you don't
45 need the -d. in the case you are running on CAF, they
46 must have the same path
47 -x <suffix> Add extra suffix to files
49 -c min,max First and last centrality bins to process
50 (As defined in AddTaskLambdaK0PbPb)
52 -g <gridmode> Plugin Mode [default=$mode]
53 -p <recopass> Reconstruction pass [default=$pass]
55 -p <path> Data set path
56 -n <nev> Number of events
57 -w <workers> Number of workers [default=$workers]
60 -f <folder> Run the fitting macro in the subfolder of ./output
61 -b <bin> Centrality bin index [default=$fitBin]
62 -p <particleID> Fit particle defined by particleID [default=$partID]
66 3=Lambda + Anti-Lambda,
69 -x <suffix> Add extra suffix to files
74 while getopts "r:hd:mg:p:n:w:t:l:f:b:x:ic:s:" opt; do
93 #fitBin=`printf %2.2d $OPTARG`
133 echo "Invalid option: -$OPTARG" >&2
138 echo "Option -$OPTARG requires an argument." >&2
146 if [ "$task" = "yes" ]
149 if [ "$listfile" != "" ]
154 runlist="$runlist $line"
158 echo "Run list: $runlist"
161 if [ "$runMode" = "2" ]
163 echo root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,$usePID,$option,$suffix,$workers,\"$mode\",$binMin,$binMax\)
164 root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,$usePID,\"$option\",\"$suffix\",$workers,\"$mode\",$binMin,$binMax\)
168 echo root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,$usePID,$option,\"$suffix\",$workers,\"$mode\",$binMin,$binMax\)
169 root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,$usePID,\"$option\",\"$suffix\",$workers,\"$mode\",$binMin,$binMax\)
172 elif [ "$fit" = "yes" ]
174 # root FitSpectrum.C\(\"./output/$fitFolder/lambdak0_${fitBin}.root\",\"clambdak0Histo_${fitBin}\",\"$suffix\",${ihist},$partID\)
175 root FitSpectrum.C\(\"./output10binsNew/$fitFolder/lambdak0_${fitBin}.root\",\"clambdak0Histo_${fitBin}\",\"$suffix\",${ihist},$partID\)