-
Notifications
You must be signed in to change notification settings - Fork 1
/
jeebus.sh
executable file
·56 lines (48 loc) · 1.34 KB
/
jeebus.sh
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
#!/bin/bash
#for mgg
#root -l -b -q "Make.C(1,0)"
#root -l -b -q "Make.C(1,1)"
#for mggjj
#root -l -b -q "Make.C(0,1)"
#root -l -b -q "Make.C(0,2)"
#for 2D
searchMass="0 270 300"
withCorr="0 1"
catrange_res="0 1"
catrange_nonres="0 1 2 3"
#temporary settings
if [ $# -ge 1 ]; then
searchMass=$1
fi
if [ $# -ge 2 ]; then
withCorr=$2
fi
if [ $# -ge 3 ]; then
catrange_res=$3
catrange_nonres=$3
fi
for iMass in `echo ${searchMass}`; do
for iCorr in `echo ${withCorr}`; do
if [ "${iMass}" -eq "0" ]; then
catrange=${catrange_nonres}
else
catrange=${catrange_res}
fi
for icat in `echo ${catrange}`; do
for imgg in `echo "0 1 4"`; do
for imjj in `echo "0 1 4"`; do
echo "Running cat $icat mgg $imgg mjj $imjj searchMass $iMass withCorr $iCorr"
./R2GGBBBiasStudy_2D.exe $icat $imgg $imjj $iMass $iCorr > output-${icat}-${imgg}-${imjj}-${iMass}-${iCorr}.txt
rm output-${icat}-${imgg}-${imjj}-${iMass}-${iCorr}.txt
#if [ "$imgg" -eq "4" ] && [ "$imjj" -eq "4" ]; then
# ./R2GGBBBiasStudy_2D.exe $icat $imgg $imjj $iMass $iCorr > output-${icat}-${imgg}-${imjj}-${iMass}-${iCorr}.txt
# sleep 100
# rm output*txt
#else
# ./R2GGBBBiasStudy_2D.exe $icat $imgg $imjj $iMass $iCorr > output-${icat}-${imgg}-${imjj}-${iMass}-${iCorr}.txt &
#fi
done
done
done
done
done