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

Functions

def multi_rename
 

Variables

tuple log = logging.getLogger(__name__)
 
tuple parser
 
string help = "Input ROOT files containing limit input histograms."
 
tuple args = parser.parse_args()
 
list root_files = [ROOT.TFile(filename, "READ") for filename in args.inputs]
 
list histogram_paths = [[path for key, path in roottools.RootTools.walk_root_directory(root_file) if key.GetClassName().startswith("TH")] for root_file in root_files]
 
dictionary renamings
 
list renamed_histogram_paths = [[multi_rename(path, renamings) for path in paths] for paths in histogram_paths]
 
tuple sorted_renamed_histogram_paths = sorted(renamed_histogram_paths, key=lambda sublist: len(sublist))
 
list common_histogram_paths = [[histogram_paths[input_index][renamed_histogram_paths[input_index].index(path)] for path in sorted_renamed_histogram_paths[0] if path in sorted_renamed_histogram_paths[1]] for input_index in range(len(histogram_paths))]
 
list plot_configs = []
 

Function Documentation

def makePlots_compareLimitInputs.multi_rename (   input_string,
  renamings 
)

Variable Documentation

tuple makePlots_compareLimitInputs.args = parser.parse_args()
list makePlots_compareLimitInputs.common_histogram_paths = [[histogram_paths[input_index][renamed_histogram_paths[input_index].index(path)] for path in sorted_renamed_histogram_paths[0] if path in sorted_renamed_histogram_paths[1]] for input_index in range(len(histogram_paths))]
string makePlots_compareLimitInputs.help = "Input ROOT files containing limit input histograms."
list makePlots_compareLimitInputs.histogram_paths = [[path for key, path in roottools.RootTools.walk_root_directory(root_file) if key.GetClassName().startswith("TH")] for root_file in root_files]
tuple makePlots_compareLimitInputs.log = logging.getLogger(__name__)
tuple makePlots_compareLimitInputs.parser
Initial value:
1 = argparse.ArgumentParser(description="Make prefit plots from limit inputs.",
2  parents=[logger.loggingParser])
list makePlots_compareLimitInputs.plot_configs = []
list makePlots_compareLimitInputs.renamed_histogram_paths = [[multi_rename(path, renamings) for path in paths] for paths in histogram_paths]
dictionary makePlots_compareLimitInputs.renamings
Initial value:
1 = {
2  }
list makePlots_compareLimitInputs.root_files = [ROOT.TFile(filename, "READ") for filename in args.inputs]
tuple makePlots_compareLimitInputs.sorted_renamed_histogram_paths = sorted(renamed_histogram_paths, key=lambda sublist: len(sublist))