HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
makePlots_datacardsMSSMHtt Namespace Reference

Functions

def sample2process
 
def getcategory
 

Variables

tuple log = logging.getLogger(__name__)
 
dictionary samples_dict
 
dictionary shapes
 
dictionary shapes_weight_dict
 
dictionary mapping_process2sample
 
tuple parser
 
string help = "Input directory."
 
list default = []
 
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 hadd_commands = []
 
string tmp_input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}{MASS}_${BIN}_${SYSTEMATIC}_${ERA}.root"
 
string input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}{MASS}_${BIN}_${ERA}.root"
 
string bkg_histogram_name_template = "${BIN}/${PROCESS}"
 
string bkg_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}"
 
string output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root"
 
list looplist = [""]
 
string prefix = ""
 
list tmp_output_files = []
 
tuple output_file = os.path.join(args.output_dir, "htt_%s%s%s.inputs-mssm-13TeV%s.root"%(channel.replace("mm","zmm"),prefix,mass,args.postfix))
 
tuple category = categorytemplate.format(mass=mass)
 
list exclude_cuts = []
 
string cut_type = "mssm2016"
 
tuple nominal = (shape_systematic == "nominal")
 
 list_of_samples = args.samples
 
string systematic = "nominal"
 
string samples = "\", \""
 
 channel = channel,
 
list additional_weight = shapes_weight_dict[shape_systematic]
 
tuple config
 
string replacestring = "jecUncNom_tauEsUp"
 
string binnings_key = "binningHttMSSM13TeV_"
 
 histogram_name_template = bkg_histogram_name_templateifnominalelsebkg_syst_histogram_name_template
 
tuple PROCESS = sample2process(re.sub("_(os|ss)_(low|high)mt","",sample))
 
tuple BIN = getcategory(category,sample)
 
 SYSTEMATIC = systematic
 
tuple tmp_output_file
 
 DST = output_file,
 
string SRC = " "
 
list debug_plot_configs = []
 

Function Documentation

def makePlots_datacardsMSSMHtt.getcategory (   basecategory,
  sample 
)
def makePlots_datacardsMSSMHtt.sample2process (   sample)

Variable Documentation

list makePlots_datacardsMSSMHtt.additional_weight = shapes_weight_dict[shape_systematic]
tuple makePlots_datacardsMSSMHtt.args = parser.parse_args()
tuple makePlots_datacardsMSSMHtt.BIN = getcategory(category,sample)
string makePlots_datacardsMSSMHtt.binnings_key = "binningHttMSSM13TeV_"
tuple makePlots_datacardsMSSMHtt.binnings_settings = binnings.BinningsDict()
string makePlots_datacardsMSSMHtt.bkg_histogram_name_template = "${BIN}/${PROCESS}"
string makePlots_datacardsMSSMHtt.bkg_syst_histogram_name_template = "${BIN}/${PROCESS}_${SYSTEMATIC}"
makePlots_datacardsMSSMHtt.category = categorytemplate.format(mass=mass)
makePlots_datacardsMSSMHtt.channel = channel,
tuple makePlots_datacardsMSSMHtt.config
Initial value:
1 = sample_settings.get_config(
2  samples=[getattr(samples.Samples, sample) for sample in list_of_samples],
3  channel=channel,
4  category="catHttMSSM13TeV_"+category,
5  weight=args.weight,
6  lumi = args.lumi * 1000,
7  exclude_cuts=args.exclude_cuts,
8  higgs_masses=args.higgs_masses,
9  mssm=True,
10  estimationMethod=args.background_method,
11  controlregions=args.controlregions,
12  fakefactor_method=args.fakefactor_method,
13  cut_type=cut_type,
14  no_ewk_samples = True,
15  no_ewkz_as_dy = True
16  )
string makePlots_datacardsMSSMHtt.cut_type = "mssm2016"
list makePlots_datacardsMSSMHtt.debug_plot_configs = []
string makePlots_datacardsMSSMHtt.default = []
makePlots_datacardsMSSMHtt.DST = output_file,
list makePlots_datacardsMSSMHtt.exclude_cuts = []
list makePlots_datacardsMSSMHtt.hadd_commands = []
string makePlots_datacardsMSSMHtt.help = "Input directory."
makePlots_datacardsMSSMHtt.histogram_name_template = bkg_histogram_name_templateifnominalelsebkg_syst_histogram_name_template
string makePlots_datacardsMSSMHtt.input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}{MASS}_${BIN}_${ERA}.root"
makePlots_datacardsMSSMHtt.list_of_samples = args.samples
tuple makePlots_datacardsMSSMHtt.log = logging.getLogger(__name__)
makePlots_datacardsMSSMHtt.looplist = [""]
dictionary makePlots_datacardsMSSMHtt.mapping_process2sample
Initial value:
1 = {
2  "data_obs" : "data",
3  "ZTT" : "ztt",
4  "ZLL" : "zll",
5  "ZL" : "zl",
6  "ZJ" : "zj",
7  "TT" : "ttj",
8  "TTT" : "ttt",
9  "TTJ" : "ttjj",
10  "VV" : "vv",
11  "VVT" : "vvt",
12  "VVJ" : "vvj",
13  "W" : "wj",
14  "QCD" : "qcd",
15  "EWK" : "ewk",
16  "jetFakes" : "ff",
17  "ggH" : "ggh",
18  "bbH" : "bbh",
19  "qqH" : "qqh",
20  "VH" : "vh",
21  "WH" : "wh",
22  "ZH" : "zh",
23 }
tuple makePlots_datacardsMSSMHtt.nominal = (shape_systematic == "nominal")
tuple makePlots_datacardsMSSMHtt.output_file = os.path.join(args.output_dir, "htt_%s%s%s.inputs-mssm-13TeV%s.root"%(channel.replace("mm","zmm"),prefix,mass,args.postfix))
tuple makePlots_datacardsMSSMHtt.output_files = []
string makePlots_datacardsMSSMHtt.output_root_filename_template = "datacards/common/${ANALYSIS}.input_${ERA}.root"
tuple makePlots_datacardsMSSMHtt.parser
Initial value:
1 = argparse.ArgumentParser(description="Create ROOT inputs and datacards for SM HTT analysis.",
2  parents=[logger.loggingParser])
list makePlots_datacardsMSSMHtt.plot_configs = []
string makePlots_datacardsMSSMHtt.prefix = ""
tuple makePlots_datacardsMSSMHtt.PROCESS = sample2process(re.sub("_(os|ss)_(low|high)mt","",sample))
string makePlots_datacardsMSSMHtt.replacestring = "jecUncNom_tauEsUp"
tuple makePlots_datacardsMSSMHtt.sample_settings = samples.Samples()
string makePlots_datacardsMSSMHtt.samples = "\", \""
dictionary makePlots_datacardsMSSMHtt.samples_dict
dictionary makePlots_datacardsMSSMHtt.shapes
dictionary makePlots_datacardsMSSMHtt.shapes_weight_dict
string makePlots_datacardsMSSMHtt.SRC = " "
makePlots_datacardsMSSMHtt.systematic = "nominal"
makePlots_datacardsMSSMHtt.SYSTEMATIC = systematic
tuple makePlots_datacardsMSSMHtt.systematics_factory = systematics.SystematicsFactory()
string makePlots_datacardsMSSMHtt.tmp_input_root_filename_template = "input/${ANALYSIS}_${CHANNEL}{MASS}_${BIN}_${SYSTEMATIC}_${ERA}.root"
tuple makePlots_datacardsMSSMHtt.tmp_output_file
Initial value:
1 = os.path.join(args.output_dir, tmp_input_root_filename_template.replace("$", "").format(
2  ANALYSIS="htt",
3  CHANNEL="zmm" if channel == "mm" else channel,
4  BIN=category.replace("mm","zmm"),
5  SYSTEMATIC=systematic,
6  ERA="13TeV",
7  MASS=prefix+mass
8  ))
tuple makePlots_datacardsMSSMHtt.tmp_output_files = []