]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/scan/allScan.sh
Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / scan / allScan.sh
1 #!/bin/bash 
2
3 # --- Variables needed by base stuff ---------------------------------
4 base=${ANA_SRC}/scan
5 datadir=/data/alice/data/pbpb/LHC10h/pass2
6
7 # --- Our set-up -----------------------------------------------------
8 runs="137848 138190"
9 slCuts="fix=0,0.15"
10 shCuts="sig=.5,1;xi=1,2;prob=1"
11 dcCuts="prob=1;sig=.5,1;xi=1,2,5"
12 strCuts="false"
13
14 # --- Help -----------------------------------------------------------
15 usage()
16 {
17     cat <<EOF
18 Usage: $0 [OPTIONS] [-- [TRAIN OPTIONS]]
19
20 Options:
21         -h,--help               This help
22         -d,--datadir DIR        Top level directory of data
23         -r,--runs    RUNS       Runs to analyze
24         -2,--no-3               Do not do 3-strip sharing
25         -n,--no-act             Do not do any processing, just show
26         --                      Terminate command line handling 
27
28 RUNS is a space separated list of runs 
29 EOF
30 }
31
32 noact=0
33 dbg=0
34 # --- Handle command line --------------------------------------------
35 while test $# -gt 0 ; do 
36     case $1 in 
37         -h|--help)      usage ; exit 0 ;;
38         -d|--datadir)   datadir=$2 ; shift ;;
39         -D|--debug)     dbg=$2 ; shift ;; 
40         -r|--runs)      runs="$2" ; shift ;;
41         -2|--no-3)      strCuts="false" ;; 
42         -n|--no-act)    noact=1 ;;
43         -m|--mc)        mc=1 ;;
44         --)             shift ; break;;
45         *) echo "$0: Unknown argument $1" >/dev/stderr; exit 1;;
46     esac
47     shift
48 done
49
50 # --- Source basic setup ---------------------------------------------
51 . ${base}/baseScan.sh 
52 debug=$dbg
53
54 # --- Loop over everyting --------------------------------------------
55 fullLoop "$runs" "$strCuts" "$slCuts" "$shCuts" "$dcCuts" $@
56
57 # EOF