Skip to content

Commit

Permalink
add muRF-ttbar for the 1l; for mirror use the in only
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso committed Aug 26, 2018
1 parent cff5868 commit 448d299
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions script/bwsFullHadTB.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
nRebinHT=1
#nRebinHT=5
#LikeBins=10
LikeBins=1
#LikeBins=2
#LikeBins=1
LikeBins=2

doRebin = False
applyLikelihoodRebinBin = True
Expand Down Expand Up @@ -326,14 +326,9 @@ def mergeCategory(tfile,toget):
for x in basecat:

region = ["_in","_above","_below"]
## region = ["_in","_below"]
## region = ["_in"]

#counting
# if True:
# region = ["_in"]
# if "OneBOneFat1l" in x: continue
# if "OneBOneMirrorFat" in x:continue
if "OneBOneMirrorFat" in x:
region = ["_in"]

if "OneBOneFat1l" in x:
region = ["_all"]
Expand Down Expand Up @@ -624,11 +619,11 @@ def mergeCategory(tfile,toget):
print "* ",cat,":",catStore[cat]
print "---------------------- --------"

fileTmp="MIAO_AUG23_bin2/"+label+VarTest+opts.kMass+"_"+opts.output
fileTmp="MIAO_AUG25_bin2/"+label+VarTest+opts.kMass+"_"+opts.output

w = ROOT.RooWorkspace("w","w")
datNameTmp = opts.datCardName
datName = "MIAO_AUG23_bin2/"+label+ VarTest+opts.kMass+"_" + datNameTmp
datName = "MIAO_AUG25_bin2/"+label+ VarTest+opts.kMass+"_" + datNameTmp

datacard=open(datName,"w")
datacard.write("-------------------------------------\n")
Expand Down Expand Up @@ -909,6 +904,7 @@ def importStat():
if syst == "None": continue
if systStore[syst]["type"] == "lnN":
## remember to decorrelate among the mirror and SR
## remember to decorrelate eff-l for among veto and 1l
if "CMS_eff_Tau21" in systStore[syst]["wsname"]:
writeNormSyst(syst,systStore[syst]["value"],systStore[syst]["proc"],["wbb","wbj"])
elif "CMS_eff_Tau32" in systStore[syst]["wsname"]:
Expand All @@ -922,7 +918,7 @@ def importStat():
elif "muRF_ttbar_below" in systStore[syst]["wsname"]:
writeSystShape(systStore[syst],systStore[syst]["proc"],["below"])
elif "muRF_ttbar_in" in systStore[syst]["wsname"]:
writeSystShape(systStore[syst],systStore[syst]["proc"],["in"])
writeSystShape(systStore[syst],systStore[syst]["proc"],["in","OneBOneFat1l"])
elif "muRF_ttbar_above" in systStore[syst]["wsname"]:
writeSystShape(systStore[syst],systStore[syst]["proc"],["above"])
##
Expand Down

0 comments on commit 448d299

Please sign in to comment.