From c47ce69da99b9814aca11e53a747ed23eb1b22a7 Mon Sep 17 00:00:00 2001 From: maria Date: Sun, 26 Aug 2018 09:20:26 +0200 Subject: [PATCH] add muRF-ttbar for the 1l; for mirror use the in only --- script/bwsFullHadTB.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/script/bwsFullHadTB.py b/script/bwsFullHadTB.py index 89c868e3..4db6ad75 100644 --- a/script/bwsFullHadTB.py +++ b/script/bwsFullHadTB.py @@ -14,8 +14,8 @@ nRebinHT=1 #nRebinHT=5 #LikeBins=10 -LikeBins=1 -#LikeBins=2 +#LikeBins=1 +LikeBins=2 doRebin = False applyLikelihoodRebinBin = True @@ -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"] @@ -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") @@ -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"]) ##