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

Namespaces

 makePlots_datacardsCPStudies
 

Variables

tuple makePlots_datacardsCPStudies.log = logging.getLogger(__name__)
 
tuple makePlots_datacardsCPStudies.parser
 
string makePlots_datacardsCPStudies.help = "Input directory."
 
list makePlots_datacardsCPStudies.default = ["all"]
 
tuple makePlots_datacardsCPStudies.args = parser.parse_args()
 
list makePlots_datacardsCPStudies.cp_mixing_angles_over_pi_half = ["{mixing:03d}".format(mixing=int(mixing*100)) for mixing in args.cp_mixings]
 
list makePlots_datacardsCPStudies.cp_mixings_str = ["{mixing:0.2f}".format(mixing=mixing) for mixing in args.cp_mixings]
 
tuple makePlots_datacardsCPStudies.cp_mixings_scan = list(numpy.arange(args.cp_mixings[0], args.cp_mixings[-1]+0.001, (args.cp_mixings[-1]-args.cp_mixings[0])/(args.cp_mixing_scan_points-1)))
 
tuple makePlots_datacardsCPStudies.cp_mixings_combine_range_min = (3*cp_mixings_scan[0]-cp_mixings_scan[1])
 
tuple makePlots_datacardsCPStudies.cp_mixings_combine_range_max = (3*cp_mixings_scan[-1]-cp_mixings_scan[-2])
 
tuple makePlots_datacardsCPStudies.sample_settings = samples.Samples()
 
tuple makePlots_datacardsCPStudies.binnings_settings = binnings.BinningsDict()
 
tuple makePlots_datacardsCPStudies.systematics_factory = systematics.SystematicsFactory()
 
list makePlots_datacardsCPStudies.plot_configs = []
 
list makePlots_datacardsCPStudies.output_files = []
 
list makePlots_datacardsCPStudies.merged_output_files = []
 
list makePlots_datacardsCPStudies.hadd_commands = []
 
tuple makePlots_datacardsCPStudies.datacards = cpstudiesdatacards.CPStudiesDatacards(cp_mixings_str, add_data=True)
 
string makePlots_datacardsCPStudies.tmp_input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${SYSTEMATIC}_${ERA}.root"
 
string makePlots_datacardsCPStudies.input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}_${BIN}_${ERA}.root"
 
string makePlots_datacardsCPStudies.bkg_histogram_name_template = "${BIN}/${PROCESS}"
 
string makePlots_datacardsCPStudies.sig_histogram_name_template = "${BIN}/${PROCESS}${MASS}"
 
string makePlots_datacardsCPStudies.bkg_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}"
 
string makePlots_datacardsCPStudies.sig_syst_histogram_name_template = "${BIN}/${PROCESS}${MASS}_${SYSTEMATIC}"
 
list makePlots_datacardsCPStudies.datacard_filename_templates
 
string makePlots_datacardsCPStudies.output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root"
 
tuple makePlots_datacardsCPStudies.categories = datacards.cb.cp()
 
tuple makePlots_datacardsCPStudies.datacards_per_channel_category = cpstudiesdatacards.CPStudiesDatacards(cb=datacards.cb.cp().channel([channel]).bin([category]))
 
list makePlots_datacardsCPStudies.higgs_masses = args.higgs_masses[:1]
 
list makePlots_datacardsCPStudies.additional_higgs_masses_for_shape = args.higgs_masses[1:]
 
tuple makePlots_datacardsCPStudies.output_file
 
list makePlots_datacardsCPStudies.tmp_output_files = []
 
tuple makePlots_datacardsCPStudies.nominal = (shape_systematic == "nominal")
 
list makePlots_datacardsCPStudies.list_of_bkg_samples = [datacards.configs.process2sample(process) for process in list_of_samples if process in datacards_per_channel_category.cb.cp().backgrounds().process_set()]
 
list makePlots_datacardsCPStudies.list_of_sig_samples = [datacards.configs.process2sample(process) for process in list_of_samples if process in datacards_per_channel_category.cb.cp().signals().process_set()]
 
string makePlots_datacardsCPStudies.systematic = "nominal"
 
dictionary makePlots_datacardsCPStudies.config = {}
 
string makePlots_datacardsCPStudies.samples = "\", \""
 
 makePlots_datacardsCPStudies.channel = channel,
 
 makePlots_datacardsCPStudies.category = category,
 
tuple makePlots_datacardsCPStudies.config_bkg
 
tuple makePlots_datacardsCPStudies.PROCESS = datacards.configs.sample2process(sample)
 
 makePlots_datacardsCPStudies.BIN = category,
 
 makePlots_datacardsCPStudies.SYSTEMATIC = systematic
 
tuple makePlots_datacardsCPStudies.tmp_additional_higgs_masses_for_shape = copy.deepcopy(additional_higgs_masses_for_shape)
 
tuple makePlots_datacardsCPStudies.config_sig
 
 makePlots_datacardsCPStudies.MASS = cp_mixing_str,
 
tuple makePlots_datacardsCPStudies.nicks_to_sum = copy.deepcopy(list_of_bkg_samples)
 
tuple makePlots_datacardsCPStudies.systematics_settings = systematics_factory.get(shape_systematic)
 
string makePlots_datacardsCPStudies.binnings_key = "binningHtt13TeV_"
 
tuple makePlots_datacardsCPStudies.tmp_output_file
 
 makePlots_datacardsCPStudies.DST = output_file,
 
string makePlots_datacardsCPStudies.SRC = " "
 
list makePlots_datacardsCPStudies.debug_plot_configs = []
 
 makePlots_datacardsCPStudies.update_systematics = True
 
tuple makePlots_datacardsCPStudies.processes = datacards.cb.cp()
 
float makePlots_datacardsCPStudies.add_threshold = 0.1
 
dictionary makePlots_datacardsCPStudies.datacards_cbs = {}
 
tuple makePlots_datacardsCPStudies.datacards_workspaces = datacards.text2workspace(datacards_cbs, n_processes=args.n_processes)
 
list makePlots_datacardsCPStudies.result_plot_configs = []
 
tuple makePlots_datacardsCPStudies.datacards_postfit_shapes = datacards.postfit_shapes_fromworkspace(datacards_cbs, datacards_workspaces, False, args.n_processes, "--sampling" + (" --print" if args.n_processes <= 1 else ""))
 
 makePlots_datacardsCPStudies.STABLE = datacards.stable_options,
 
string makePlots_datacardsCPStudies.RANGE = "{0:f},{1:f}"
 
 makePlots_datacardsCPStudies.POINTS = args.cp_mixing_scan_points