1 |
|
sample=$1 |
2 |
< |
cd /shome/nmohr/CMSSW_5_3_2/src/ |
2 |
> |
energy=$2 |
3 |
> |
cd $CMSSW_BASE/src/ |
4 |
|
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 |
< |
pathAna=/shome/nmohr/VHbbAnalysis/EDMNtuple_step2/May5/ |
10 |
< |
execute=/shome/nmohr/CMSSW_5_3_2/src/UserCode/VHbb/python/ |
11 |
< |
config=config7TeV |
12 |
< |
mkdir $pathAna/env/sys |
10 |
> |
execute=$PWD/UserCode/VHbb/python/ |
11 |
|
cd $execute |
12 |
< |
./write_regression_systematics.py $pathAna/env/ $sample -C ${config} |
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 |
> |
mkdir $pathAna/env/sys |
22 |
> |
./write_regression_systematics.py -P $pathAna/env/ -S $sample -C $configFile -C pathConfig$energy |
23 |
|
mkdir $pathAna/env/sys/MVAout |
24 |
< |
./evaluateMVA.py $pathAna/env/sys/ 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 $sample 0 -C ${config} |
25 |
< |
./showinfo.py $pathAna/env/sys |
24 |
> |
./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 |