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

Namespaces

 makePlots_ZTTtheoryUnc
 

Functions

def makePlots_ZTTtheoryUnc.addArguments
 
def makePlots_ZTTtheoryUnc.merge
 
def makePlots_ZTTtheoryUnc.AppendConfig
 

Variables

tuple makePlots_ZTTtheoryUnc.log = logging.getLogger(__name__)
 
list makePlots_ZTTtheoryUnc.colors = ['#000080', '#FF0000', '#800000', '#FFFF00', '#800080', '#000080', '#008000', '#0000FF', '#008080']
 
tuple makePlots_ZTTtheoryUnc.parser = argparse.ArgumentParser(description = "Make Data-MC control plots.", parents = [logger.loggingParser])
 
tuple makePlots_ZTTtheoryUnc.args = parser.parse_args()
 
list makePlots_ZTTtheoryUnc.lheweights_names = []
 
 makePlots_ZTTtheoryUnc.pdfkey = args.pdfkey
 
 makePlots_ZTTtheoryUnc.addpdfs = args.addpdfs
 
list makePlots_ZTTtheoryUnc.list_of_samples = [getattr(samples.Samples, sample) for sample in args.samples]
 
tuple makePlots_ZTTtheoryUnc.sample_settings = samples.Samples(embedding=True)
 
list makePlots_ZTTtheoryUnc.bkg_samples = [sample for sample in args.samples if sample not in ["data", "htt", "ggh", "bbh"]]
 
list makePlots_ZTTtheoryUnc.sig_samples_raw = [sample for sample in args.samples if sample in ["htt", "ggh", "bbh"]]
 
list makePlots_ZTTtheoryUnc.sig_samples = []
 
string makePlots_ZTTtheoryUnc.scale_str = "_%i"
 
tuple makePlots_ZTTtheoryUnc.binnings_settings = binnings.BinningsDict()
 
string makePlots_ZTTtheoryUnc.global_category_string = "catHtt13TeV"
 
string makePlots_ZTTtheoryUnc.global_cut_type = "ztt2015cs"
 
int makePlots_ZTTtheoryUnc.whitelistbylhe = 1
 
tuple makePlots_ZTTtheoryUnc.category_string = (global_category_string + "_{channel}_{category}")
 
string makePlots_ZTTtheoryUnc.file_name = ""
 
tuple makePlots_ZTTtheoryUnc.config = sample_settings.get_config( samples = list_of_samples, channel = args.channels[0], category = category_string )
 
tuple makePlots_ZTTtheoryUnc.root_file = ROOT.TFile(file_name, "READ")
 
tuple makePlots_ZTTtheoryUnc.eventTree = ROOT.gDirectory.Get(sample_settings.root_file_folder(args.channels[0]))
 
tuple makePlots_ZTTtheoryUnc.list_of_leaves = eventTree.GetListOfLeaves()
 
dictionary makePlots_ZTTtheoryUnc.plot_configs = {}
 
dictionary makePlots_ZTTtheoryUnc.plot_configs_scale_only = {}
 
dictionary makePlots_ZTTtheoryUnc.plot_configs_pdf_only = {}
 
dictionary makePlots_ZTTtheoryUnc.plot_configs_alphas_only = {}
 
int makePlots_ZTTtheoryUnc.printedpdf = 0
 
int makePlots_ZTTtheoryUnc.printedalphas = 0
 
int makePlots_ZTTtheoryUnc.printedscale = 0
 
dictionary makePlots_ZTTtheoryUnc.json_config = {}
 
list makePlots_ZTTtheoryUnc.json_filenames = [os.path.join(args.json_dir, "8TeV" if args.run1 else "13TeV", channel_dir, quantity+".json") for channel_dir in [channel, "default"]]
 
tuple makePlots_ZTTtheoryUnc.json_filename = os.path.expandvars(json_filename)
 
tuple makePlots_ZTTtheoryUnc.quantity = json_config.pop("x_expressions", [quantity])
 
 makePlots_ZTTtheoryUnc.binning_string = None
 
 makePlots_ZTTtheoryUnc.binnings_key = None
 
list makePlots_ZTTtheoryUnc.bkg_samples_used = [nick for nick in bkg_samples if nick in config["nicks"]]
 
int makePlots_ZTTtheoryUnc.hmass_temp = 125
 
string makePlots_ZTTtheoryUnc.sig_nick = "htt%i"
 
tuple makePlots_ZTTtheoryUnc.config_temp = sample_settings.get_config( samples = list_of_samples, channel = args.channels[0], category = category_string)
 
list makePlots_ZTTtheoryUnc.centralvalue = config_temp["nicks"]
 
dictionary makePlots_ZTTtheoryUnc.configs_dict
 
tuple makePlots_ZTTtheoryUnc.fout = open("merged_" + args.samples[0] + "_" + channel + key + str(category) + ".json", "w")