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.4 by nmohr, Mon Sep 17 15:34:43 2012 UTC vs.
Revision 1.6 by bortigno, Thu Sep 20 08:52:54 2012 UTC

# Line 1 | Line 1
1 + #!/bin/bash
2 +
3 + #Input argument:
4 + #sample you want to run on. It has to match the naming in sample.info.
5   sample=$1
6 + #sqrt(s) you want to run
7   energy=$2
8 +
9 + #Set the environment for the batch job execution
10   cd $CMSSW_BASE/src/
11   source /swshare/psit3/etc/profile.d/cms_ui_env.sh
12   export SCRAM_ARCH="slc5_amd64_gcc462"
# Line 7 | Line 14 | source $VO_CMS_SW_DIR/cmsset_default.sh
14   eval `scramv1 runtime -sh`
15   unset TMP
16   unset TMPDIR
17 < execute=$PWD/UserCode/VHbb/python/
17 >
18 > #Path where the script write_regression_systematic.py and evaluateMVA.py are stored
19 > #execute=$PWD/UserCode/VHbb/python/
20 > execute=/shome/bortigno/VHbbAnalysis/VHbbTest/python
21   cd $execute
22 +
23 + #back to the working dir
24 + #cd -
25 +
26 + #Parsing the path form the config
27   pathAna=`python << EOF
28   import os
29   from BetterConfigParser import BetterConfigParser
# Line 18 | Line 33 | print config.get('Directories','samplepa
33   EOF`
34   echo $pathAna
35   configFile=config$energy
36 < mkdir $pathAna/env/sys
36 >
37 > #Create subdirs where processed samples will be stored
38 > if [ ! -d $pathAna/env/sys ]
39 >    then
40 >    mkdir $pathAna/env/sys
41 > fi
42 > if [ ! -d $pathAna/env/sys ]
43 >    then
44 >    mkdir $pathAna/env/sys/MVAout
45 > fi
46 >
47 > #Create the link to th sample information in the new sudfolders
48 > if [ ! -f $pathAna/env/sys/samples.info ]
49 >    then
50 >    ln -s $pathAna/env/samples.info  $pathAna/env/sys/samples.info
51 > fi
52 > if [ ! -f $pathAna/sys/MVAout/samples.info ]
53 >    then
54 >    ln -s $pathAna/env/samples.info $pathAna/env/sys/MVAout/samples.info
55 > fi
56 >
57 > #Run the scripts
58   ./write_regression_systematics.py -P $pathAna/env/ -S $sample -C $configFile -C pathConfig$energy
23 mkdir $pathAna/env/sys/MVAout
59   ./evaluateMVA.py -P $pathAna/env/sys/ -D RTight_ZH110_may,RTight_ZH115_may,RTight_ZH120_may,RTight_ZH125_may,RTight_ZH130_may,RTight_ZH135_may,RMed_ZH110_may,RMed_ZH115_may,RMed_ZH120_may,RMed_ZH125_may,RMed_ZH130_may,RMed_ZH135_may -S $sample -U 0 -C ${configFile} -C pathConfig$energy
60   #./showinfo.py $pathAna/env/sys

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines