effPlots.plotDir = plotDir effPlots.name = '{DIR}'.format(DIR=directory.replace('/','')) if effPlots.name=='': effPlots.name = 'Muon2PtCut_5' effPlots.publicationDir = publicationDir effPlots.histoBaseName = "{DIR}hFakeRate".format(DIR=directory) effPlots.inputFileNames = [[inputFileName]] effPlots.systems = systems effPlots.selectionLevels = selectionLevels effPlots.plotInfos = plotInfos effPlots.referenceLevels = referenceLevels effPlots.individualNames = names effPlots.variables = variables effPlots.variableNames = variableNames effPlots.outputFile = outputFile effPlots.divideOption = "pois" effPlots.rebin = 2 effPlots.plot(0., 0.3) efficiencyPlots.append(effPlots) ################################################ systems2 = [] systems2.append("MTlt40") systems2.append("MTgt70") selectionLevels2 = [] selectionLevels2.append(("Iso_Medium","Iso_Medium",)) referenceLevels2 = [] referenceLevels2.append(("InvertIso_Medium","InvertIso_Medium",))
effPlots2 = EfficiencyPlots() effPlots2.name = name effPlots2.publicationDir = publicationDir effPlots2.histoBaseName = "hFakeRate" effPlots2.inputFileNames = [[inputFileName]] effPlots2.systems = systems effPlots2.selectionLevels = selectionLevels effPlots2.plotInfos = plotInfos effPlots2.referenceLevels = referenceLevels effPlots2.individualNames = names effPlots2.variables = variables effPlots2.variableNames = variableNames effPlots2.outputFile = outputFile effPlots2.divideOption = "pois" effPlots2.rebin = [0.,10.,20.,30.,40.,50.,60.,70.,200.] effPlots2.plot(0., 0.3) efficiencyPlots.append(effPlots2) ######################################################## ## Compute corrections for mT>70GeV corrections def graphDivide(graph1, graph2): x = [] y = [] xe = [] ye = [] for p in range(0, graph1.GetN()):
effPlots.plotDir = plotDir effPlots.name = '{DIR}'.format(DIR=directory.replace('/', '')) if effPlots.name == '': effPlots.name = 'Muon2PtCut_5' effPlots.publicationDir = publicationDir effPlots.histoBaseName = "{DIR}hFakeRate".format(DIR=directory) effPlots.inputFileNames = [[inputFileName]] effPlots.systems = systems effPlots.selectionLevels = selectionLevels effPlots.plotInfos = plotInfos effPlots.referenceLevels = referenceLevels effPlots.individualNames = names effPlots.variables = variables effPlots.variableNames = variableNames effPlots.outputFile = outputFile effPlots.divideOption = "pois" effPlots.rebin = 2 effPlots.plot(0., 0.3) efficiencyPlots.append(effPlots) ################################################ systems2 = [] systems2.append("MTlt40") systems2.append("MTgt70") selectionLevels2 = [] selectionLevels2.append(( "Iso_Medium", "Iso_Medium", )) referenceLevels2 = []