Variables | |
| tuple | log = logging.getLogger(__name__) |
| dictionary | models |
| tuple | parser |
| string | help = "Input directory." |
| tuple | choices = models.keys() |
| list | default = ["all"] |
| tuple | args = parser.parse_args() |
| tuple | sample_settings = samples.Samples() |
| tuple | systematics_factory = systematics.SystematicsFactory() |
| list | plot_configs = [] |
| list | hadd_commands = [] |
| tuple | datacards = zttxsecdatacards.ZttXsecDatacards(model=args.model) |
| 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}" |
| list | datacard_filename_templates |
| string | output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root" |
| tuple | categories = datacards.cb.cp() |
| tuple | datacards_per_channel_category = zttxsecdatacards.ZttXsecDatacards(cb=datacards.cb.cp().channel([channel]).bin([category]), model=args.model) |
| tuple | output_file |
| list | tmp_output_files = [] |
| tuple | nominal = (shape_systematic == "nominal") |
| list | list_of_samples = [datacards.configs.process2sample(process) for process in list_of_samples] |
| string | systematic = "nominal" |
| string | samples = "\", \"" |
| channel = channel, | |
| category = category, | |
| tuple | config |
| tuple | systematics_settings = systematics_factory.get(shape_systematic) |
| dictionary | json_config = {} |
| tuple | binnings_settings = binnings.BinningsDict() |
| string | binnings_key = channel+"_" |
| 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 = " " |
| tuple | output_files = list(set([os.path.join(config["output_dir"], config["filename"]+".root") for config in plot_configs[:args.n_plots[0]]])) |
| update_systematics = False | |
| dictionary | datacards_cbs = {} |
| tuple | model_settings = models.get(args.model, {}) |
| tuple | fit_settings = model_settings.get("fit", {"" : {}}) |
| tuple | tmp_fit_options = fit_options.get("options", "") |
| tuple | GRID_BINS = (int(args.grid_bins) * int(args.grid_bins)) |
| tuple | datacards_workspaces |
| list | FIT_METHOD = fit_options["method"] |
| FIT_OPTIONS = tmp_fit_options, | |
| STABLE = datacards.stable_options, | |
| dictionary | datacards_postfit_shapes = {} |
| list | bkg_plotting_order = ["ZTT", "ZLL", "ZL", "ZJ", "TT", "TTJT", "TTJL", "VV", "VVT", "VVL", "EWK", "W", "WJT", "WJL", "FF", "QCD"] |
| tuple | postfit_shapes = datacards_postfit_shapes.get("fit_s", {}) |
| tuple | results_file = ROOT.TFile(os.path.join(os.path.dirname(datacard), "mlfit.root")) |
| tuple | results_tree = results_file.Get("tree_fit_sb") |
| bestfit = results_tree.mu | |
| list | processes = datacards_cbs[datacard] |
| tuple | processes_to_plot = list(processes) |
| tuple makePlots_datacardsZttCrossSection.args = parser.parse_args() |
| makePlots_datacardsZttCrossSection.bestfit = results_tree.mu |
| makePlots_datacardsZttCrossSection.BIN = category, |
| string makePlots_datacardsZttCrossSection.binnings_key = channel+"_" |
| tuple makePlots_datacardsZttCrossSection.binnings_settings = binnings.BinningsDict() |
| string makePlots_datacardsZttCrossSection.bkg_histogram_name_template = "${BIN}/${PROCESS}" |
| list makePlots_datacardsZttCrossSection.bkg_plotting_order = ["ZTT", "ZLL", "ZL", "ZJ", "TT", "TTJT", "TTJL", "VV", "VVT", "VVL", "EWK", "W", "WJT", "WJL", "FF", "QCD"] |
| string makePlots_datacardsZttCrossSection.bkg_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}" |
| tuple makePlots_datacardsZttCrossSection.categories = datacards.cb.cp() |
| makePlots_datacardsZttCrossSection.category = category, |
| makePlots_datacardsZttCrossSection.channel = channel, |
| tuple makePlots_datacardsZttCrossSection.choices = models.keys() |
| dictionary makePlots_datacardsZttCrossSection.config |
| list makePlots_datacardsZttCrossSection.datacard_filename_templates |
| tuple makePlots_datacardsZttCrossSection.datacards = zttxsecdatacards.ZttXsecDatacards(model=args.model) |
| dictionary makePlots_datacardsZttCrossSection.datacards_cbs = {} |
| tuple makePlots_datacardsZttCrossSection.datacards_per_channel_category = zttxsecdatacards.ZttXsecDatacards(cb=datacards.cb.cp().channel([channel]).bin([category]), model=args.model) |
| tuple makePlots_datacardsZttCrossSection.datacards_postfit_shapes = {} |
| tuple makePlots_datacardsZttCrossSection.datacards_workspaces |
| string makePlots_datacardsZttCrossSection.default = ["all"] |
| makePlots_datacardsZttCrossSection.DST = output_file, |
| list makePlots_datacardsZttCrossSection.FIT_METHOD = fit_options["method"] |
| makePlots_datacardsZttCrossSection.FIT_OPTIONS = tmp_fit_options, |
| tuple makePlots_datacardsZttCrossSection.fit_settings = model_settings.get("fit", {"" : {}}) |
| tuple makePlots_datacardsZttCrossSection.GRID_BINS = (int(args.grid_bins) * int(args.grid_bins)) |
| list makePlots_datacardsZttCrossSection.hadd_commands = [] |
| string makePlots_datacardsZttCrossSection.help = "Input directory." |
| makePlots_datacardsZttCrossSection.histogram_name_template = bkg_histogram_name_templateifnominalelsebkg_syst_histogram_name_template |
| string makePlots_datacardsZttCrossSection.input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${ERA}.root" |
| dictionary makePlots_datacardsZttCrossSection.json_config = {} |
| list makePlots_datacardsZttCrossSection.list_of_samples = [datacards.configs.process2sample(process) for process in list_of_samples] |
| tuple makePlots_datacardsZttCrossSection.log = logging.getLogger(__name__) |
| tuple makePlots_datacardsZttCrossSection.model_settings = models.get(args.model, {}) |
| dictionary makePlots_datacardsZttCrossSection.models |
| tuple makePlots_datacardsZttCrossSection.nominal = (shape_systematic == "nominal") |
| tuple makePlots_datacardsZttCrossSection.output_file |
| tuple makePlots_datacardsZttCrossSection.output_files = list(set([os.path.join(config["output_dir"], config["filename"]+".root") for config in plot_configs[:args.n_plots[0]]])) |
| string makePlots_datacardsZttCrossSection.output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root" |
| tuple makePlots_datacardsZttCrossSection.parser |
| list makePlots_datacardsZttCrossSection.plot_configs = [] |
| tuple makePlots_datacardsZttCrossSection.postfit_shapes = datacards_postfit_shapes.get("fit_s", {}) |
| tuple makePlots_datacardsZttCrossSection.PROCESS = datacards.configs.sample2process(sample) |
| list makePlots_datacardsZttCrossSection.processes = datacards_cbs[datacard] |
| list makePlots_datacardsZttCrossSection.processes_to_plot = list(processes) |
| tuple makePlots_datacardsZttCrossSection.results_file = ROOT.TFile(os.path.join(os.path.dirname(datacard), "mlfit.root")) |
| tuple makePlots_datacardsZttCrossSection.results_tree = results_file.Get("tree_fit_sb") |
| tuple makePlots_datacardsZttCrossSection.sample_settings = samples.Samples() |
| string makePlots_datacardsZttCrossSection.samples = "\", \"" |
| string makePlots_datacardsZttCrossSection.sig_histogram_name_template = "${BIN}/${PROCESS}" |
| string makePlots_datacardsZttCrossSection.sig_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}" |
| string makePlots_datacardsZttCrossSection.SRC = " " |
| makePlots_datacardsZttCrossSection.STABLE = datacards.stable_options, |
| makePlots_datacardsZttCrossSection.systematic = "nominal" |
| makePlots_datacardsZttCrossSection.SYSTEMATIC = systematic |
| tuple makePlots_datacardsZttCrossSection.systematics_factory = systematics.SystematicsFactory() |
| tuple makePlots_datacardsZttCrossSection.systematics_settings = systematics_factory.get(shape_systematic) |
| tuple makePlots_datacardsZttCrossSection.tmp_fit_options = fit_options.get("options", "") |
| string makePlots_datacardsZttCrossSection.tmp_input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${SYSTEMATIC}_${ERA}.root" |
| tuple makePlots_datacardsZttCrossSection.tmp_output_file |
| list makePlots_datacardsZttCrossSection.tmp_output_files = [] |
| makePlots_datacardsZttCrossSection.update_systematics = False |