plotting.init_palette() c = plotting.init_canvas(args.x_dim, args.y_dim) labels = ['sig', 'signal', 'bkgd', 'ratio'] zlabels = [ 'Significance in optimal cut', 'Exp. num. signal in optimal cut', 'Exp. num. bkgd in optimal cut', 'Signal/Background' ] nSigs = [2, 3, 3, 2] for label, zlabel, nSig in zip(labels, zlabels, nSigs): h = plotting.init_hist(zlabel, args.g_min, args.g_max, args.l_min, args.l_max, args.bin_size) plotting.fill_hist(h, plot_array, label, label == 'sig') plotting.draw_hist(h, nSig) plotting.draw_labels(args.lumi) plotting.draw_text(args.text_file) plotting.draw_line(args.g_min, args.l_min, args.g_max, args.l_max, args.top_mass) savefilename = os.path.join(args.out_directory, '_'.join([args.output, label])) if args.do_run1: gr = plotting.get_run1(args.run1_excl, 1, 3, args.run1_color) gr.Draw("C") gr_1sigma = plotting.get_run1(args.run1_1sigma, 3, 1, args.run1_color) gr_1sigma.Draw("C") plotting.draw_run1_text(args.run1_color) savefilename += "_wrun1" if args.do_run2: gr = plotting.get_run2(args.run2_excl, 1, 3, args.run2_color) gr.Draw("C")
'mgluino': [r['m_gluino'] for r in summary], 'mlsp': [r['m_lsp'] for r in summary], 'ratio': [r['ratio'] for r in summary]} plotting.init_palette() c = plotting.init_canvas(args.x_dim, args.y_dim) labels = ['sig','signal','bkgd', 'ratio'] zlabels = ['Significance in optimal cut','Exp. num. signal in optimal cut','Exp. num. bkgd in optimal cut', 'Signal/Background'] nSigs = [2, 3, 3, 2] for label,zlabel,nSig in zip(labels,zlabels,nSigs): h = plotting.init_hist(zlabel, args.g_min, args.g_max, args.l_min, args.l_max, args.x_bin_size, args.y_bin_size) plotting.fill_hist(h,plot_array,label, label=='sig') plotting.draw_hist(h, nSig) plotting.draw_labels(args.lumi) plotting.draw_text(args.text_file) plotting.draw_line(args.g_min, args.l_min, args.g_max, args.l_max, args.top_mass) savefilename = os.path.join(args.out_directory, '_'.join([args.output, label])) if args.do_run1: gr = plotting.get_run1(args.run1_excl,1,3,args.run1_color) gr.Draw("C") gr_1sigma = plotting.get_run1(args.run1_1sigma,3,1,args.run1_color) gr_1sigma.Draw("C") plotting.draw_run1_text(args.run1_color) savefilename += "_wrun1" if args.do_run2: gr = plotting.get_run2(args.run2_excl,1,3,args.run2_color) gr.Draw("C") gr_1sigma = plotting.get_run2(args.run2_1sigma,3,1,args.run2_color) gr_1sigma.Draw("C") plotting.draw_run2_text(args.run2_color)