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 = [] |
def makePlots_compareLimitInputs.multi_rename | ( | input_string, | |
renamings | |||
) |
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 |
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 |
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)) |