forked from ikrav/DrellYanDMDY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetupTheory.sh
executable file
·35 lines (27 loc) · 910 Bytes
/
setupTheory.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
#!/bin/bash
mcInput=$1
debugMode=0
if [ "$2" == "-debug" ] ; then
debugMode=$3
echo "setupTheory: setting debugMode=${debugMode}"
fi
if [ ${#mcInput} -eq 0 ] ; then
mcInput="../config_files/summer12mc.input"
fi
# acceptance correction theoretical uncertainty used in 2011 summer
root -l -q -b TheoryErrors.C+\(\"${mcInput}\"\)
# theoretical cross section used in 2011 or 2012
root -l -q -b createThXSec1Dsummer2012.C+
# theoretical cross section from Zee MC signal sample
useFEWZarr="true false"
#useFEWZarr="true"
#fineGridArr="0 1 2"
#fineGridArr="1"
fineGridArr="0 1 2 3"
fineGridArr="0"
for fineGrid in ${fineGridArr} ; do
for useFEWZ in ${useFEWZarr} ; do
echo "useFEWZ=${useFEWZ}, fineGrid=${fineGrid}"
root -l -q -b getXsecExtended.C+\(\"${mcInput}\",${debugMode},${useFEWZ},${fineGrid}\) | tee log-xSec-FEWZ${useFEWZ}-fineGrid${fineGrid}-debug${debugMode}.out
done
done