-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdoBiasOneMassPoint.sh
executable file
·35 lines (29 loc) · 1.3 KB
/
doBiasOneMassPoint.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
#!/bin/bash
cleanUp=0
rebin=10
debug=0
m=$1
model=$2
postfix=(
`cat inputs_to_process.txt`
)
models=(
"env_pdf_0_13TeV_dijet2" "env_pdf_0_13TeV_exp1" "env_pdf_0_13TeV_expow1" "env_pdf_0_13TeV_pow1" "env_pdf_0_13TeV_lau1" "env_pdf_0_13TeV_atlas1" "env_pdf_0_13TeV_vvdijet1"
)
seeds=334455
./buildInputs.sh $rebin $m $model
./buildDatacards_alt.sh $m
./buildDatacards.sh $m
echo "datacard_qqg_${m}_combined_alt.txt"
for name in ${postfix[@]}
do
echo building datacard for $name
dirName="info_${m}_${name}"
dcardName="datacard_${m}_${name}.txt"
dcardNameAlt="datacard_${m}_${name}_alt.txt"
combine ${dirName}/${dcardNameAlt} -M GenerateOnly -m $m -t 500 --saveToys -s $seeds --expectSignal=0.0 -n biasTest
combine ${dirName}/${dcardName} -M MaxLikelihoodFit -m $m --expectSignal=0.0 --rMin=-100000 --rMax=100000 -t 500 --toysFile=higgsCombinebiasTest.GenerateOnly.mH${m}.${seeds}.root -s $seeds -n output${m}_${name}
seeds=334466
done
combine datacard_qqg_${m}_combined_alt.txt -M GenerateOnly -m $m -t 1000 --saveToys -s 334477 --expectSignal=0.0 -n biasTest
combine datacard_qqg_${m}_combined.txt -M MaxLikelihoodFit -m $m --expectSignal=0.0 --noErrors --minos none --rMin=-10000 --rMax=10000 -t 1000 --toysFile=higgsCombinebiasTest.GenerateOnly.mH${m}.334477.root -s 334477 -n output${m}