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