ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/runAll.sh
(Generate patch)

Comparing UserCode/VHbb/python/runAll.sh (file contents):
Revision 1.24 by peller, Wed Feb 13 10:06:17 2013 UTC vs.
Revision 1.27 by nmohr, Thu Feb 28 16:38:49 2013 UTC

# Line 8 | Line 8 | energy=$2
8  
9   task=$3
10  
11 + job_id=$4
12 +
13 + additional_arg=$5
14 +
15   if [ $# -lt 3 ]
16      then
17      echo "ERROR: You passed " $# "arguments while the script needs at least 3 arguments."
# Line 47 | Line 51 | EOF`
51   #Run the scripts
52  
53   if [ $task = "prep" ]; then
54 <    ./prepare_environment_with_config.py -C ${energy}config/samples_nosplit.cfg -C ${energy}config/paths
54 >    ./prepare_environment_with_config.py -S $sample -C ${energy}config/samples_nosplit.cfg -C ${energy}config/paths
55   fi
56   if [ $task = "sys" ]; then
57      ./write_regression_systematics.py -S $sample -C ${energy}config/general -C ${energy}config/paths
# Line 60 | Line 64 | if [ $task = "syseval" ]; then
64      ./evaluateMVA.py -D $MVAList -S $sample -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/cuts -C ${energy}config/training
65   fi
66   if [ $task = "train" ]; then
67 <    ./train.py -T $sample -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/cuts -C ${energy}config/training
67 >    ./train.py -T $sample -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/cuts -C ${energy}config/training -L True
68   fi
69   if [ $task = "plot" ]; then
70      ./tree_stack.py -R $sample -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/cuts -C ${energy}config/plots
71   fi
72   if [ $task = "dc" ]; then
73 <    ./workspace_datacard.py -V $sample -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/cuts -C ${energy}config/datacards
73 >    ./workspace_datacard.py -V $sample -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/cuts -C ${energy}config/datacards -C ${energy}config/plots
74 > fi
75 > if [ $task = "split" ]; then
76 >    ./split_tree.py -S $sample -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/cuts -C ${energy}config/training -M $job_id
77 > fi
78 >
79 > if [ $task = "mva_opt" ]; then
80 >    if [ $# -lt 5 ]
81 >        then
82 >        echo "@ERROR: You passed " $# "arguments while BDT optimisation needs at least 5 arguments."
83 >        echo "Exiting..."
84 >        echo " ---------------------------------- "
85 >        echo " Usage : ./runAll.sh sample energy task jo_id bdt_factory_settings"
86 >        echo " ---------------------------------- "
87 >        exit
88 >    fi
89 >    echo "BDT factory settings"
90 >    echo $additional_arg
91 >    echo "Runnning"
92 >    ./train.py -N ${sample} -T ${job_id} -C ${energy}config/general -C ${energy}config/paths -C ${energy}config/training -C ${energy}config/cuts -S ${additional_arg} -L False
93   fi
94  
95   rm -rf $TMPDIR

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines