6 |
|
#sqrt(s) you want to run |
7 |
|
energy=$2 |
8 |
|
|
9 |
+ |
if [ $# -lt 2 ] |
10 |
+ |
then |
11 |
+ |
echo "ERROR: You passed " $# "arguments while the script needs at least 2 arguments." |
12 |
+ |
echo "Exiting..." |
13 |
+ |
echo " ---------------------------------- " |
14 |
+ |
echo " Usage : ./runAll.sh sample energy" |
15 |
+ |
echo " ---------------------------------- " |
16 |
+ |
exit |
17 |
+ |
fi |
18 |
+ |
|
19 |
|
#Set the environment for the batch job execution |
20 |
|
cd $CMSSW_BASE/src/ |
21 |
|
source /swshare/psit3/etc/profile.d/cms_ui_env.sh |
27 |
|
|
28 |
|
#Path where the script write_regression_systematic.py and evaluateMVA.py are stored |
29 |
|
#execute=$PWD/UserCode/VHbb/python/ |
30 |
< |
execute=/shome/bortigno/VHbbAnalysis/VHbbTest/python |
31 |
< |
cd $execute |
30 |
> |
#execute=/shome/bortigno/VHbbAnalysis/VHbbTest/python |
31 |
> |
#cd $execute |
32 |
|
|
33 |
|
#back to the working dir |
34 |
< |
#cd - |
34 |
> |
cd - |
35 |
|
|
36 |
|
#Parsing the path form the config |
37 |
|
pathAna=`python << EOF |
49 |
|
then |
50 |
|
mkdir $pathAna/env/sys |
51 |
|
fi |
52 |
< |
if [ ! -d $pathAna/env/sys ] |
52 |
> |
if [ ! -d $pathAna/env/sys/MVAout ] |
53 |
|
then |
54 |
|
mkdir $pathAna/env/sys/MVAout |
55 |
|
fi |
67 |
|
#Run the scripts |
68 |
|
./write_regression_systematics.py -P $pathAna/env/ -S $sample -C $configFile -C pathConfig$energy |
69 |
|
./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 |