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

Namespaces

 makePlots_compareLimitInputs
 

Functions

def makePlots_compareLimitInputs.multi_rename
 

Variables

tuple makePlots_compareLimitInputs.log = logging.getLogger(__name__)
 
tuple makePlots_compareLimitInputs.parser
 
string makePlots_compareLimitInputs.help = "Input ROOT files containing limit input histograms."
 
tuple makePlots_compareLimitInputs.args = parser.parse_args()
 
list makePlots_compareLimitInputs.root_files = [ROOT.TFile(filename, "READ") for filename in args.inputs]
 
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]
 
dictionary makePlots_compareLimitInputs.renamings
 
list makePlots_compareLimitInputs.renamed_histogram_paths = [[multi_rename(path, renamings) for path in paths] for paths in histogram_paths]
 
tuple makePlots_compareLimitInputs.sorted_renamed_histogram_paths = sorted(renamed_histogram_paths, key=lambda sublist: len(sublist))
 
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))]
 
list makePlots_compareLimitInputs.plot_configs = []