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

Namespaces

 makePlots_datacardsZttCrossSection
 

Variables

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