default="", help='Tag for saving') cms_label_group = parser.add_mutually_exclusive_group(required=False) cms_label_group.add_argument('--cms', action='store_true', help="Draw CMS label") cms_label_group.add_argument('--cms_text', type=str, help="Draw CMS label with extra text") parser.add_argument('--conference_label', type=str, default="", help="Text for specifying conference or time period") args = parser.parse_args() gq_plot = GQSummaryPlot("gq_all_2c{}".format(args.save_tag)) # If args.goms_fills is specified, don't draw the "line_width=402" style fill if args.gom_fills: for style_name in style: style[style_name]["line_width"] = 2 # Load data analysis_data = {} analyses = args.analyses.split(",") for analysis in analyses: # Dummy entries: just go in legend, no actual data if len(analysis) == 0: print "ERROR : analyses contains zero length string." print analyses if analysis[0] == "_":
default="", help='Tag for saving') cms_label_group = parser.add_mutually_exclusive_group(required=False) cms_label_group.add_argument('--cms', action='store_true', help="Draw CMS label") cms_label_group.add_argument('--cms_text', type=str, help="Draw CMS label with extra text") parser.add_argument('--conference_label', type=str, default="", help="Text for specifying conference or time period") args = parser.parse_args() gq_plot = GQSummaryPlot("gq_cms{}".format(args.save_tag)) # If args.goms_fills is specified, don't draw the "line_width=402" style fill if args.gom_fills: for style_name in style: style[style_name]["line_width"] = 2 # Load data analysis_data = {} analyses = args.analyses.split(",") for analysis in analyses: # Dummy entries: just go in legend, no actual data if analysis[0] == "_": gq_plot.add_legend_only(analysis, legend_entries[analysis]) continue
default="0.1,0.3", help='List of Gamma/M values to draw') parser.add_argument( '--gom_fills', action='store_true', help='Draw fills for exclusions with Gamma/M or gq upper bound') cms_label_group = parser.add_mutually_exclusive_group(required=False) cms_label_group.add_argument('--cms', action='store_true', help="Draw CMS label") cms_label_group.add_argument('--cms_text', type=str, help="Draw CMS label with extra text") args = parser.parse_args() gq_plot = GQSummaryPlot("gq_cms") # If args.goms_fills is specified, don't draw the "line_width=402" style fill if args.gom_fills: for style_name in style: style[style_name]["line_width"] = 2 # Load data analysis_data = {} analyses = args.analyses.split(",") for analysis in analyses: analysis_data[analysis] = DijetData(analysis) analysis_data[analysis].load_data("data/{}.dat".format(analysis)) if args.gom_fills and analysis in max_gom: this_max_gom = max_gom[analysis] else:
parser = ArgumentParser(description='Make g_q summary plot') parser.add_argument('--analyses', type=str, default="\ EXO17001_obs,EXO16057_SR1_obs,EXO16046_obs,\ EXO14005_obs,EXO16056_narrow_obs,EXO16056_wide_obs,\ ATLAS_EXOT1701_obs,ATLAS_8TeV,UA2,\ CDF_Run1,CDF_Run2,EXO16057_SR2_obs", help="Analyses to plot (CADI lines, comma-separated)") parser.add_argument('--logx', action='store_true', help='Log x') parser.add_argument('--logy', action='store_true', help='Log y') parser.add_argument('--goms', type=str, default="0.1,0.3", help='List of Gamma/M values to draw') parser.add_argument('--gom_fills', action='store_true', help='Draw fills for exclusions with Gamma/M or gq upper bound') cms_label_group = parser.add_mutually_exclusive_group(required=False) cms_label_group.add_argument('--cms', action='store_true', help="Draw CMS label") cms_label_group.add_argument('--cms_text', type=str, help="Draw CMS label with extra text") args = parser.parse_args() gq_plot = GQSummaryPlot("gq_all") # If args.goms_fills is specified, don't draw the "line_width=402" style fill if args.gom_fills: for style_name in style: style[style_name]["line_width"] = 2 # Load data analysis_data = {} if args.analyses=='': analyses = [] else: analyses = args.analyses.split(",") for analysis in analyses: analysis_data[analysis] = DijetData(analysis) if args.gom_fills and analysis in max_gom: this_max_gom = max_gom[analysis] else: