3 # --- Variables needed by base stuff ---------------------------------
5 datadir=/data/alice/data/pbpb/LHC10h/pass2
7 # --- Our set-up -----------------------------------------------------
9 methods="sig xi mpv prob"
10 mpvcuts="0.1 0.3 0.5 0.7"
13 sfcuts="0.10 fix 0.7 mpv"
17 # --- Help -----------------------------------------------------------
21 Usage: $0 [OPTIONS] [-- [TRAIN OPTIONS]]
25 -d,--datadir DIR Top level directory of data
26 -r,--runs RUNS Runs to analyze
27 -2,--no-3 Do not do 3-strip sharing
28 -m,--methods METHODS Override which methods to scan ($methods)
29 -c,--cuts VALUES Override cuts (for all methods)
30 -s,--sharing CUTS Override sharing cuts ($sfcuts)
31 -n,--no-act Do not do any processing, just show
32 -- Terminate command line handling
34 RUNS is a space separated list of runs
36 METHODS is a space separated string of one or more of
39 xi c = Delta_p - X x xi
40 sig c = Delta_p - x x (xi + sigma)
42 prob c: P(Delta<c) < X
45 where X is the cut parameter.
47 VALUES is a space separated list of X values.
49 Sharing CUTS must consist of 4 parts.
55 # --- Handle command line --------------------------------------------
56 while test $# -gt 0 ; do
58 -h|--help) usage ; exit 0 ;;
59 -d|--datadir) datadir=$2 ; shift ;;
60 -r|--runs) runs="$2" ; shift ;;
61 -2|--no-3) strcuts="false" ;;
62 -m|--methods) methods="$2" ; shift ;;
63 -c|--cuts) mycuts="$2"; shift ;;
64 -s|--sharing) sfcuts="$2"; shift ;;
65 -n|--no-act) noact=1 ;;
67 *) echo "$0: Unknown argument $1" >/dev/stderr; exit 1;;
72 # --- Source basic setup ---------------------------------------------
75 # --- Loop over everyting --------------------------------------------
76 for r in $runs ; do # Loop over runs
77 echo "=== Now processing run $r"
78 for t in ${strcuts} ; do # Loop over 3-strip merging
79 echo "=== With allow 3-particle merging $t"
80 for m in $methods ; do # Loop over methods
81 echo "=== For method $m"
82 if test "x$mycuts" = "x" ; then
83 # If we should use the defined cuts
85 mpv) cuts="$mpvcuts" ;;
86 xi|sig) cuts="$xicuts" ;;
87 prob) cuts="$probcuts" ;;
88 *) echo "Unknown cut type: $m" ; exit 1 ;;
91 # If cuts are overwritten by command line
94 for c in $cuts ; do # Loop over cuts
95 echo "=== With cut value $c"
96 runOne $r $t $sfcuts $c $m $@ # 'sfcuts' expand to 4 args
98 done # Loop over methods
99 done # Loop over 3-strip merging
100 done # Loop over runs