1 |
nmohr |
1.1 |
sample=$1
|
2 |
nmohr |
1.4 |
energy=$2
|
3 |
|
|
cd $CMSSW_BASE/src/
|
4 |
nmohr |
1.1 |
source /swshare/psit3/etc/profile.d/cms_ui_env.sh
|
5 |
|
|
export SCRAM_ARCH="slc5_amd64_gcc462"
|
6 |
|
|
source $VO_CMS_SW_DIR/cmsset_default.sh
|
7 |
|
|
eval `scramv1 runtime -sh`
|
8 |
|
|
unset TMP
|
9 |
|
|
unset TMPDIR
|
10 |
nmohr |
1.4 |
execute=$PWD/UserCode/VHbb/python/
|
11 |
|
|
cd $execute
|
12 |
|
|
pathAna=`python << EOF
|
13 |
|
|
import os
|
14 |
|
|
from BetterConfigParser import BetterConfigParser
|
15 |
|
|
config = BetterConfigParser()
|
16 |
|
|
config.read('./pathConfig$energy')
|
17 |
|
|
print config.get('Directories','samplepath')
|
18 |
|
|
EOF`
|
19 |
|
|
echo $pathAna
|
20 |
|
|
configFile=config$energy
|
21 |
nmohr |
1.1 |
mkdir $pathAna/env/sys
|
22 |
nmohr |
1.4 |
./write_regression_systematics.py -P $pathAna/env/ -S $sample -C $configFile -C pathConfig$energy
|
23 |
nmohr |
1.1 |
mkdir $pathAna/env/sys/MVAout
|
24 |
nmohr |
1.4 |
./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
|
25 |
|
|
#./showinfo.py $pathAna/env/sys
|