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 c47ce69
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 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 @@ -922,7 +917,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 c47ce69

Please sign in to comment.