-
Notifications
You must be signed in to change notification settings - Fork 3
/
TESTER
executable file
·66 lines (61 loc) · 3.36 KB
/
TESTER
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
cd MCFM-8.0_original/Bin/
rm W_only_* grid-* input-* input__* log*
echo "============================================================================================================="
echo "|||||||||||||||||||||||>>>>>----------- MCFM-8.0------O-R-I-G-I-N-A-L----------->>>>> |||||||||||||||||||||||"
echo "============================================================================================================="
for creategrid in false #true
do
sed "s/dummy_grid/$creategrid/" <input_dummy.DAT >input__$creategrid.DAT
for order in lo #nlo nnlo nlocoeff nnlocoeff
do
echo " "
date
echo "----------------->> IN PROCESS: 'creategrid'-.$creategrid. ; 'order'-'$order'; <<------------------"
sed "s/dummy_order/$order/" <input__$creategrid.DAT >input-$creategrid$order.DAT
./mcfm input-$creategrid$order.DAT >log1_$creategrid\_$order
./mcfm input-$creategrid$order.DAT >log2_$creategrid\_$order
echo " "
sed -e :a -e '$q;N;8,$D;ba' log2_$creategrid\_$order
echo " "
echo "-----------------<< DONE!: 'creategrid'-.$creategrid. ; 'order'-'$order'; >>------------------"
date
echo "============================================================================================================="
cd ../../TESTER_RESULTS/mcfm-original
mkdir TESTER_$creategrid\_$order
cd -
mv grid* W_only_* log* input-$creategrid$order.DAT ../../TESTER_RESULTS/mcfm-original/TESTER_$creategrid\_$order
done
rm input__$creategrid.DAT
done
cd ../../MCFM-8.0/Bin/
rm W_only_* grid-* input-* input__* log*
echo "============================================================================================================="
echo "|||||||||||||||||||||||<<<<<----------- MCFM-8.0------M-O-D-I-F-I-E-D-----------<<<<< |||||||||||||||||||||||"
echo "============================================================================================================="
for creategrid in true false
do
sed "s/dummy_grid/$creategrid/" <input_dummy.DAT >input__$creategrid.DAT
for order in lo #nlo nnlo nlocoeff nnlocoeff
do
echo " "
date
echo "----------------->> IN PROCESS: 'creategrid'-.$creategrid. ; 'order'-'$order'; <<------------------"
sed "s/dummy_order/$order/" <input__$creategrid.DAT >input-$creategrid$order.DAT
./mcfm input-$creategrid$order.DAT >log1_$creategrid\_$order
./mcfm input-$creategrid$order.DAT >log2_$creategrid\_$order
echo " "
sed -e :a -e '$q;N;8,$D;ba' log2_$creategrid\_$order
echo " "
echo "-----------------<< DONE!: 'creategrid'-.$creategrid. ; 'order'-'$order'; >>------------------"
date
echo "============================================================================================================="
cd ../../TESTER_RESULTS/mcfm-modified
mkdir TESTER_$creategrid\_$order
cd -
mv grid* W_only_* log* input-$creategrid$order.DAT ../../TESTER_RESULTS/mcfm-modified/TESTER_$creategrid\_$order
done
rm input__$creategrid.DAT
done
cd ../../
exit