13 option="SAVE" #FIXME:set option
15 fitFolder="LHC10h_000137161_p1_5plus"
25 This scripts runs the the physics selection and centrality on a specified run/dataset
29 -r <mode> Run the task
34 -d <run or dataset> Run number(s) (grid) or dataset (caf) or file name (local)
35 Local filename can be an xml collection of files on alies,
36 a single esd, or a text file with an ESD filename per line
37 -m Set if runnning on MC
38 -t <rootopt> Options passed to root
39 -l <list.txt> Process sequentially all runs/dataset listed in the file
40 (one entry per line). If you use this option you don't
41 need the -d. in the case you are running on CAF, they
42 must have the same path
43 -x <suffix> Add extra suffix to files
45 -g <gridmode> Plugin Mode [default=$mode]
46 -p <recopass> Reconstruction pass [default=$pass]
48 -p <path> Data set path
49 -n <nev> Number of events
50 -w <workers> Number of workers [default=$workers]
53 -f <folder> Run the fitting macro in the subfolder of ./output
54 -b <bin> Centrality bin index [default=$fitBin]
55 -p <particleID> Fit particle defined by particleID [default=$partID]
59 3=Lambda + Anti-Lambda,
62 -x <suffix> Add extra suffix to files
67 while getopts "r:hd:mg:p:n:w:t:l:f:b:x:" opt; do
78 fitBin=`printf %2.2d $OPTARG`
113 echo "Invalid option: -$OPTARG" >&2
118 echo "Option -$OPTARG requires an argument." >&2
126 if [ "$task" = "yes" ]
129 if [ "$listfile" != "" ]
134 runlist="$runlist $line"
138 echo "Run list: $runlist"
141 if [ "$runMode" = "2" ]
143 echo root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,$option,$suffix,$workers,\"$mode\"\)
144 root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,\"$option\",\"$suffix\",$workers,\"$mode\"\)
148 echo root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,$option,$suffix,$workers,\"$mode\"\)
149 root $ROPT run.C\(\"$run\",\"$pass\",$nev,$offset,$debug,$runMode,$mc,\"$option\",\"$suffix\",$workers,\"$mode\"\)
152 elif [ "$fit" = "yes" ]
154 root FitSpectrum.C\(\"./output/$fitFolder/lambdak0_${fitBin}.root\",\"clambdak0Histo_${fitBin}\",\"$suffix\",$partID\)