60 |
|
|
61 |
|
|
62 |
|
#Create subdirs where processed samples will be stored |
63 |
+ |
if [ ! -d $pathAna/env ] |
64 |
+ |
then |
65 |
+ |
mkdir $pathAna/env |
66 |
+ |
fi |
67 |
|
if [ ! -d $pathAna/env/sys ] |
68 |
|
then |
69 |
|
mkdir $pathAna/env/sys |
73 |
|
mkdir $pathAna/env/sys/MVAout |
74 |
|
fi |
75 |
|
|
76 |
< |
#Create the link to th sample information in the new sudfolders |
77 |
< |
if [ ! -f $pathAna/env/sys/samples.info ] |
78 |
< |
then |
79 |
< |
ln -s $pathAna/env/samples.info $pathAna/env/sys/samples.info |
76 |
< |
fi |
77 |
< |
if [ ! -f $pathAna/sys/MVAout/samples.info ] |
78 |
< |
then |
79 |
< |
ln -s $pathAna/env/samples.info $pathAna/env/sys/MVAout/samples.info |
80 |
< |
fi |
76 |
> |
#Create the link to th sample information in the new sudfolders. |
77 |
> |
#It always update the link. |
78 |
> |
ln -s -f $pathAna/env/samples.info $pathAna/env/sys/samples.info |
79 |
> |
ln -s -f $pathAna/env/samples.info $pathAna/env/sys/MVAout/samples.info |
80 |
|
|
81 |
|
#Run the scripts |
82 |
|
|
83 |
|
if [ $task = "prep" ]; then |
84 |
< |
./step1_prepare_trees.sh |
84 |
> |
./prepare_environment_with_config.py -I $pathAna -O $pathAna/env/ -C ${energy}samples_nosplit.cfg |
85 |
|
fi |
86 |
|
if [ $task = "sys" ]; then |
87 |
|
./write_regression_systematics.py -P $pathAna/env/ -S $sample -C $configFile -C pathConfig$energy |
89 |
|
if [ $task = "eval" ]; then |
90 |
|
./evaluateMVA.py -P $pathAna/env/sys/ -D $MVAList -S $sample -U 0 -C ${configFile} -C pathConfig$energy |
91 |
|
fi |
92 |
+ |
if [ $task = "syseval" ]; then |
93 |
+ |
./write_regression_systematics.py -P $pathAna/env/ -S $sample -C $configFile -C pathConfig$energy |
94 |
+ |
./evaluateMVA.py -P $pathAna/env/sys/ -D $MVAList -S $sample -U 0 -C ${configFile} -C pathConfig$energy |
95 |
+ |
fi |
96 |
|
if [ $task = "plot" ]; then |
97 |
< |
./tree_stack.py -P $pathAna/env/sys/MVAout/ -C ${configFile} -C pathConfig$energy -V $sample |
97 |
> |
./tree_stack.py -P $pathAna/env/sys/MVAout/ -C ${configFile} -C pathConfig$energy -R $sample |
98 |
|
fi |
99 |
|
if [ $task = "dc" ]; then |
100 |
|
./workspace_datacard.py -P $pathAna/env/sys/MVAout/ -C ${configFile} -C pathConfig$energy -V $sample |