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

Variables

tuple log = logging.getLogger(__name__)
 
tuple parser
 
string help = "Input ROOT file containing limit input histograms."
 
list default = ["data_obs"]
 
tuple args = vars(parser.parse_args())
 
tuple root_file = ROOT.TFile(args["input"], "READ")
 
tuple keys = root_file.GetListOfKeys()
 
list directories = [keys.At(index).GetName() for index in range(keys.GetSize()) if keys.At(index).GetClassName() == "TDirectoryFile"]
 
dictionary histograms = {}
 
tuple root_dir = root_file.Get(directory)
 
dictionary datas = {directory : [h for h in histos if h in args["data_processes"]] for directory, histos in histograms.items()}
 
dictionary backgrounds = {directory : [h for h in histos if h in args["background_processes"]] for directory, histos in histograms.items()}
 
dictionary masses_signals = {m : {directory : [h for h in histos if h.replace(str(m), "") in args["signal_processes"]] for directory, histos in histograms.items()} for m in args["higgs_masses"]}
 
dictionary colors
 
list plot_configs = []
 
list background = backgrounds[directory]
 
list signal = signals[directory]
 

Variable Documentation

tuple makePlots_limitInputsPrefitPlots.args = vars(parser.parse_args())
list makePlots_limitInputsPrefitPlots.background = backgrounds[directory]
dictionary makePlots_limitInputsPrefitPlots.backgrounds = {directory : [h for h in histos if h in args["background_processes"]] for directory, histos in histograms.items()}
dictionary makePlots_limitInputsPrefitPlots.colors
Initial value:
1 = {
2  "data_obs" : "#000000",
3  "ZTT" : "#FFCC66",
4  "ZL" : "#4496C8",
5  "ZJ" : "#64B6E8",
6  "TT" : "#9999CC",
7  "VV" : "#DE5A6A",
8  "W" : "#FE7A8A",
9  "QCD" : "#FFCCFF",
10  }
dictionary makePlots_limitInputsPrefitPlots.datas = {directory : [h for h in histos if h in args["data_processes"]] for directory, histos in histograms.items()}
list makePlots_limitInputsPrefitPlots.default = ["data_obs"]
list makePlots_limitInputsPrefitPlots.directories = [keys.At(index).GetName() for index in range(keys.GetSize()) if keys.At(index).GetClassName() == "TDirectoryFile"]
string makePlots_limitInputsPrefitPlots.help = "Input ROOT file containing limit input histograms."
dictionary makePlots_limitInputsPrefitPlots.histograms = {}
tuple makePlots_limitInputsPrefitPlots.keys = root_file.GetListOfKeys()
tuple makePlots_limitInputsPrefitPlots.log = logging.getLogger(__name__)
dictionary makePlots_limitInputsPrefitPlots.masses_signals = {m : {directory : [h for h in histos if h.replace(str(m), "") in args["signal_processes"]] for directory, histos in histograms.items()} for m in args["higgs_masses"]}
tuple makePlots_limitInputsPrefitPlots.parser
Initial value:
1 = argparse.ArgumentParser(description="Make prefit plots from limit inputs.",
2  parents=[logger.loggingParser])
list makePlots_limitInputsPrefitPlots.plot_configs = []
tuple makePlots_limitInputsPrefitPlots.root_dir = root_file.Get(directory)
tuple makePlots_limitInputsPrefitPlots.root_file = ROOT.TFile(args["input"], "READ")
list makePlots_limitInputsPrefitPlots.signal = signals[directory]