outDir=o.outDir, xStartOther=0.4, yStartOther=0.15, cmsText=o.cmsText, lumiText=o.lumiText, yLeg=0.8) #otherText="Online WP: DeepCSV > 0.63",outDir=o.outDir) # # Offline vs Online # csvBinning = 3 # Deep CSV offDeepCSV_Calo = getHist(inFileData, "offJets_matchedCalo", "DeepCSV_l", binning=csvBinning, norm=1) caloDeepCSV = getHist(inFileData, "offJets_matchedCaloJet", "DeepCSV_l", binning=csvBinning, norm=1) offDeepCSV_Calo_MC = getHist(inFileMC, "offJets_matchedCalo", "DeepCSV_l", binning=csvBinning, norm=1) caloDeepCSV_MC = getHist(inFileMC, "offJets_matchedCaloJet", "DeepCSV_l",
yStartOther=0.15, cmsText=o.cmsText, lumiText=o.lumiText, xLeg=0.6, yLeg=0.7, xLumiStart=0.6) #otherText="Online WP: DeepCSV > 0.63",outDir=o.outDir) # # Offline vs Online # csvBinning = 3 # Deep CSV offDeepCSV_Calo = getHist(inFileData1, "offJets_matchedCalo", "DeepCSV_l", binning=csvBinning, norm=1) caloDeepCSV = getHist(inFileData1, "offJets_matchedCaloJet", "DeepCSV_l", binning=csvBinning, norm=1) offDeepCSV_Calo_MC = getHist(inFileData2, "offJets_matchedCalo", "DeepCSV_l", binning=csvBinning, norm=1) caloDeepCSV_MC = getHist(inFileData2, "offJets_matchedCaloJet", "DeepCSV_l",
# (eff_CaloDeepCSV_MC, "Calo-Jet (MC) ",ROOT.kBlue, 24), # (eff_PFDeepCSV_Data, "PF-Jet (Data)",ROOT.kRed), # (eff_PFDeepCSV_MC, "PF-Jet (MC) ",ROOT.kRed, 24), # ] # ,yTitle="Efficiency",xTitle="Offline DeepCSV Value", otherText=["Online Calo WP: DeepCSV > 0.17","Online PF WP: DeepCSV > 0.24"], # outDir=o.outDir,xStartOther=0.4,yStartOther=0.15,cmsText=o.cmsText,lumiText=o.lumiText,yLeg=0.8) #otherText="Online WP: DeepCSV > 0.63",outDir=o.outDir) # # Offline vs Online # csvBinning=3 # Deep CSV offDeepCSV_Puppi = getHist(inFileData,"offJets_matchedPuppi", "DeepCSV_l",binning=csvBinning,norm=1) PuppiDeepCSV = getHist(inFileData,"offJets_matchedPuppiJet", "DeepCSV_l",binning=csvBinning,norm=1) offDeepCSV_Puppi_MC = getHist(inFileMC, "offJets_matchedPuppi", "DeepCSV_l",binning=csvBinning,norm=1) PuppiDeepCSV_MC = getHist(inFileMC, "offJets_matchedPuppiJet", "DeepCSV_l",binning=csvBinning,norm=1) offDeepCSV_PF = getHist(inFileData,"offJets_matched", "DeepCSV_l",binning=csvBinning,norm=1) pfDeepCSV = getHist(inFileData,"offJets_matchedJet", "DeepCSV_l",binning=csvBinning,norm=1) offDeepCSV_PF_MC = getHist(inFileMC, "offJets_matched", "DeepCSV_l",binning=csvBinning,norm=1) pfDeepCSV_MC = getHist(inFileMC, "offJets_matchedJet", "DeepCSV_l",binning=csvBinning,norm=1) # CSV # offCSV_Calo = getHist(inFileData,"offJets_matchedCalo", "CSVv2_l",binning=csvBinning,norm=1) # caloCSV = getHist(inFileData,"offJets_matchedCaloJet", "CSVv2_l",binning=csvBinning,norm=1) # offCSV_Calo_MC = getHist(inFileMC, "offJets_matchedCalo", "CSVv2_l",binning=csvBinning,norm=1) # caloCSV_MC = getHist(inFileMC, "offJets_matchedCaloJet", "CSVv2_l",binning=csvBinning,norm=1)
] if v == "pt_l": binning = [ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 120, 140, 160, 200, 300, 500, 750, 1000 ] if v in ["matched_dRAll", "matched_dRBjet"]: binning = 4 for config in effRatios: effNumName = config[0] effDenName = config[1] numHistOrigBinning = None if v == "pt_m": numHistOrigBinning = getHist(inFile1, effNumName, v, 1) eff_Matched_1 = makeEff(v, [effNumName, effDenName], inFile1, binning=binning, histForXBarycenterCalc=numHistOrigBinning) eff_Matched_1.SetName("Eff_" + o.name1 + "_" + effNumName + "_" + v) eff_Matched_2 = makeEff(v, [effNumName, effDenName], inFile2, binning=binning, histForXBarycenterCalc=numHistOrigBinning) eff_Matched_2.SetName("Eff_" + o.name2 + "_" + effNumName + "_" + v) min = 0.601 yLeg = 0.3 if v == "pt_m":