Functions | |
def | is_control_region |
def | matching_process |
def | remove_procs_and_systs_with_zero_yield |
Variables | |
tuple | log = logging.getLogger(__name__) |
tuple | parser |
string | help = "Input directory." |
list | default = ["et", "mt", "em"] |
tuple | args = parser.parse_args() |
tuple | sample_settings = samples.Samples() |
tuple | binnings_settings = binnings.BinningsDict() |
tuple | systematics_factory = systematics.SystematicsFactory() |
list | plot_configs = [] |
list | output_files = [] |
list | merged_output_files = [] |
list | hadd_commands = [] |
tuple | datacards = lfvzltdatacards.LFVZltDatacards(ttbarFit=args.ttbar_fit,mmFit=args.mm_fit,year=args.era,noJECuncSplit=args.no_jec_unc_split) |
string | tmp_input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${SYSTEMATIC}_${ERA}.root" |
string | input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${ERA}.root" |
string | bkg_histogram_name_template = "${BIN}/${PROCESS}" |
string | sig_histogram_name_template = "${BIN}/${PROCESS}" |
string | bkg_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}" |
string | sig_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}" |
datacard_filename_templates = datacards.configs.LFV_datacard_filename_templates | |
string | output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root" |
list | jecUncertNames |
dictionary | ss_os_factors |
dictionary | wj_sf_shifts |
dictionary | zmm_cr_factors |
string | zmm_cr_0jet_global = "(1.0)" |
string | zmm_cr_boosted_global = "(1.0)" |
string | zmm_cr_vbf_global = "(1.02)" |
dictionary | zmm_cr_factors_official |
list | top_pt_reweight_nicks |
list | categoriesWithRelaxedIsolationForW |
list | categoriesWithRelaxedIsolationForQCD |
dictionary | signalCrossSectionTimesBR |
do_not_normalize_by_bin_width = args.do_not_normalize_by_bin_width | |
list | categories = [channel + "_" + category for category in categories] |
tuple | categories_save = sorted(categories) |
tuple | datacards_per_channel_category = lfvzltdatacards.LFVZltDatacards(cb=datacards.cb.cp().channel([channel]).bin([category])) |
tuple | exclude_cuts = copy.deepcopy(args.exclude_cuts) |
list | higgs_masses = [mass for mass in datacards_per_channel_category.cb.mass_set() if mass != "*"] |
tuple | output_file |
list | tmp_output_files = [] |
tuple | nominal = (shape_systematic == "nominal") |
tuple | list_of_samples = (["data"] if nominal else []) |
string | systematic = "nominal" |
string | samples = "\", \"" |
channel = channel, | |
category = category, | |
tuple | ss_os_factor = ss_os_factors.get(category,0.0) |
tuple | wj_sf_shift = wj_sf_shifts.get(category,0.0) |
tuple | zmm_cr_factor = zmm_cr_factors_official.get(category, "(1.0)") |
tuple | config |
tuple | systematics_settings = systematics_factory.get(shape_systematic) |
list | weightAtIndex = config["weights"] |
string | binnings_key = "binningHtt13TeV_" |
list | two_d_inputs = [] |
histogram_name_template = bkg_histogram_name_templateifnominalelsebkg_syst_histogram_name_template | |
tuple | PROCESS = datacards.configs.sample2process(sample) |
BIN = category, | |
SYSTEMATIC = systematic | |
tuple | tmp_output_file |
DST = output_file, | |
string | SRC = " " |
list | debug_plot_configs = [] |
update_systematics = True | |
tuple | processes = datacards.cb.cp() |
float | add_threshold = 0.05 |
dictionary | datacards_cbs = {} |
dictionary | datacards_poi_ranges = {} |
tuple | channels = cb.channel_set() |
tuple | datacards_workspaces = datacards.text2workspace(datacards_cbs, n_processes=args.n_processes) |
tuple | datacards_postfit_shapes = datacards.postfit_shapes_fromworkspace(datacards_cbs, datacards_workspaces, False, args.n_processes, "--sampling" + (" --print" if args.n_processes <= 1 else "")) |
dictionary | backgrounds_to_merge |
dictionary | x_tick_labels |
dictionary | texts |
dictionary | texts_x |
dictionary | vertical_lines |
tuple | prefit_postfit_plot_configs = datacards.prefit_postfit_plots(datacards_cbs, datacards_postfit_shapes, plotting_args={"ratio" : args.ratio, "args" : args.args, "lumi" : args.lumi, "normalize" : not(do_not_normalize_by_bin_width), "era" : args.era, "x_expressions" : config["x_expressions"][0], "return_configs" : True, "merge_backgrounds" : backgrounds_to_merge, "add_soverb_ratio" : True}, n_processes=args.n_processes) |
list | plot_category = plot_config["filename"] |
list | plot_channel = plot_config["title"] |
def makePlots_datacardsLFVZlt.is_control_region | ( | obj | ) |
def makePlots_datacardsLFVZlt.matching_process | ( | obj1, | |
obj2 | |||
) |
def makePlots_datacardsLFVZlt.remove_procs_and_systs_with_zero_yield | ( | proc | ) |
float makePlots_datacardsLFVZlt.add_threshold = 0.05 |
tuple makePlots_datacardsLFVZlt.args = parser.parse_args() |
dictionary makePlots_datacardsLFVZlt.backgrounds_to_merge |
makePlots_datacardsLFVZlt.BIN = category, |
string makePlots_datacardsLFVZlt.binnings_key = "binningHtt13TeV_" |
tuple makePlots_datacardsLFVZlt.binnings_settings = binnings.BinningsDict() |
string makePlots_datacardsLFVZlt.bkg_histogram_name_template = "${BIN}/${PROCESS}" |
string makePlots_datacardsLFVZlt.bkg_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}" |
tuple makePlots_datacardsLFVZlt.categories_save = sorted(categories) |
list makePlots_datacardsLFVZlt.categoriesWithRelaxedIsolationForQCD |
list makePlots_datacardsLFVZlt.categoriesWithRelaxedIsolationForW |
makePlots_datacardsLFVZlt.category = category, |
makePlots_datacardsLFVZlt.channel = channel, |
tuple makePlots_datacardsLFVZlt.channels = cb.channel_set() |
tuple makePlots_datacardsLFVZlt.config |
makePlots_datacardsLFVZlt.datacard_filename_templates = datacards.configs.LFV_datacard_filename_templates |
tuple makePlots_datacardsLFVZlt.datacards = lfvzltdatacards.LFVZltDatacards(ttbarFit=args.ttbar_fit,mmFit=args.mm_fit,year=args.era,noJECuncSplit=args.no_jec_unc_split) |
dictionary makePlots_datacardsLFVZlt.datacards_cbs = {} |
tuple makePlots_datacardsLFVZlt.datacards_per_channel_category = lfvzltdatacards.LFVZltDatacards(cb=datacards.cb.cp().channel([channel]).bin([category])) |
dictionary makePlots_datacardsLFVZlt.datacards_poi_ranges = {} |
tuple makePlots_datacardsLFVZlt.datacards_postfit_shapes = datacards.postfit_shapes_fromworkspace(datacards_cbs, datacards_workspaces, False, args.n_processes, "--sampling" + (" --print" if args.n_processes <= 1 else "")) |
tuple makePlots_datacardsLFVZlt.datacards_workspaces = datacards.text2workspace(datacards_cbs, n_processes=args.n_processes) |
list makePlots_datacardsLFVZlt.debug_plot_configs = [] |
string makePlots_datacardsLFVZlt.default = ["et", "mt", "em"] |
makePlots_datacardsLFVZlt.do_not_normalize_by_bin_width = args.do_not_normalize_by_bin_width |
makePlots_datacardsLFVZlt.DST = output_file, |
tuple makePlots_datacardsLFVZlt.exclude_cuts = copy.deepcopy(args.exclude_cuts) |
list makePlots_datacardsLFVZlt.hadd_commands = [] |
string makePlots_datacardsLFVZlt.help = "Input directory." |
list makePlots_datacardsLFVZlt.higgs_masses = [mass for mass in datacards_per_channel_category.cb.mass_set() if mass != "*"] |
makePlots_datacardsLFVZlt.histogram_name_template = bkg_histogram_name_templateifnominalelsebkg_syst_histogram_name_template |
string makePlots_datacardsLFVZlt.input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${ERA}.root" |
list makePlots_datacardsLFVZlt.jecUncertNames |
tuple makePlots_datacardsLFVZlt.list_of_samples = (["data"] if nominal else []) |
tuple makePlots_datacardsLFVZlt.log = logging.getLogger(__name__) |
list makePlots_datacardsLFVZlt.merged_output_files = [] |
tuple makePlots_datacardsLFVZlt.nominal = (shape_systematic == "nominal") |
tuple makePlots_datacardsLFVZlt.output_file |
tuple makePlots_datacardsLFVZlt.output_files = [] |
string makePlots_datacardsLFVZlt.output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root" |
tuple makePlots_datacardsLFVZlt.parser |
list makePlots_datacardsLFVZlt.plot_category = plot_config["filename"] |
list makePlots_datacardsLFVZlt.plot_channel = plot_config["title"] |
list makePlots_datacardsLFVZlt.plot_configs = [] |
tuple makePlots_datacardsLFVZlt.prefit_postfit_plot_configs = datacards.prefit_postfit_plots(datacards_cbs, datacards_postfit_shapes, plotting_args={"ratio" : args.ratio, "args" : args.args, "lumi" : args.lumi, "normalize" : not(do_not_normalize_by_bin_width), "era" : args.era, "x_expressions" : config["x_expressions"][0], "return_configs" : True, "merge_backgrounds" : backgrounds_to_merge, "add_soverb_ratio" : True}, n_processes=args.n_processes) |
tuple makePlots_datacardsLFVZlt.PROCESS = datacards.configs.sample2process(sample) |
tuple makePlots_datacardsLFVZlt.processes = datacards.cb.cp() |
tuple makePlots_datacardsLFVZlt.sample_settings = samples.Samples() |
string makePlots_datacardsLFVZlt.samples = "\", \"" |
string makePlots_datacardsLFVZlt.sig_histogram_name_template = "${BIN}/${PROCESS}" |
string makePlots_datacardsLFVZlt.sig_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}" |
dictionary makePlots_datacardsLFVZlt.signalCrossSectionTimesBR |
string makePlots_datacardsLFVZlt.SRC = " " |
tuple makePlots_datacardsLFVZlt.ss_os_factor = ss_os_factors.get(category,0.0) |
dictionary makePlots_datacardsLFVZlt.ss_os_factors |
makePlots_datacardsLFVZlt.systematic = "nominal" |
makePlots_datacardsLFVZlt.SYSTEMATIC = systematic |
tuple makePlots_datacardsLFVZlt.systematics_factory = systematics.SystematicsFactory() |
tuple makePlots_datacardsLFVZlt.systematics_settings = systematics_factory.get(shape_systematic) |
dictionary makePlots_datacardsLFVZlt.texts |
dictionary makePlots_datacardsLFVZlt.texts_x |
string makePlots_datacardsLFVZlt.tmp_input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${SYSTEMATIC}_${ERA}.root" |
tuple makePlots_datacardsLFVZlt.tmp_output_file |
tuple makePlots_datacardsLFVZlt.tmp_output_files = [] |
list makePlots_datacardsLFVZlt.top_pt_reweight_nicks |
list makePlots_datacardsLFVZlt.two_d_inputs = [] |
makePlots_datacardsLFVZlt.update_systematics = True |
dictionary makePlots_datacardsLFVZlt.vertical_lines |
tuple makePlots_datacardsLFVZlt.weightAtIndex = config["weights"] |
float makePlots_datacardsLFVZlt.wj_sf_shift = wj_sf_shifts.get(category,0.0) |
dictionary makePlots_datacardsLFVZlt.wj_sf_shifts |
dictionary makePlots_datacardsLFVZlt.x_tick_labels |
string makePlots_datacardsLFVZlt.zmm_cr_0jet_global = "(1.0)" |
string makePlots_datacardsLFVZlt.zmm_cr_boosted_global = "(1.0)" |
tuple makePlots_datacardsLFVZlt.zmm_cr_factor = zmm_cr_factors_official.get(category, "(1.0)") |
dictionary makePlots_datacardsLFVZlt.zmm_cr_factors |
dictionary makePlots_datacardsLFVZlt.zmm_cr_factors_official |
string makePlots_datacardsLFVZlt.zmm_cr_vbf_global = "(1.02)" |