HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
makePlots_datacardsLFVZlt.py File Reference

Namespaces

 makePlots_datacardsLFVZlt
 

Functions

def makePlots_datacardsLFVZlt.is_control_region
 
def makePlots_datacardsLFVZlt.matching_process
 
def makePlots_datacardsLFVZlt.remove_procs_and_systs_with_zero_yield
 

Variables

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