Functions | |
def | reduce_file |
Variables | |
tuple | log = logging.getLogger(__name__) |
tuple | parser |
string | help = "Input directory. Use directory of artusoutput, which contains merged folder" |
list | default = ["ggh", "qqh", "vh", "ztt", "zll", "ttj", "vv", "wj", "data"] |
list | choices = ["ggh", "qqh", "vh", "ztt", "zll", "ttj", "vv", "wj", "data"] |
tuple | args = parser.parse_args() |
list | plot_configs = [] |
tuple | dir_path = os.path.expandvars(args.input_dir) |
tuple | input_dir = os.path.join(dir_path, "merged/") |
tuple | output_dir = os.path.join(dir_path, "reduced/") |
tuple | sample_settings = samples.Samples() |
list | list_of_samples = [getattr(samples.Samples, rs) for rs in args.samples] |
category = None | |
tuple | config |
dictionary | files_dict = {} |
list | channel = config["channel"] |
list | ntuple = config["folders"] |
list | weight = config["weights"] |
list | real_files = [] |
list | weight_list = [weight for x in range(len(real_files))] |
list | ntuple_list = [ntuple for x in range(len(real_files))] |
tuple | file_name = file_path.split("/") |
list | w = weight_list[fnum] |
list | n = ntuple_list[fnum] |
tuple | n2 = n.replace(args.rs, front, 1) |
list | give_away_list = [] |
def reduce_mergedFiles.reduce_file | ( | input_dict | ) |
tuple reduce_mergedFiles.args = parser.parse_args() |
reduce_mergedFiles.category = None |
list reduce_mergedFiles.channel = config["channel"] |
list reduce_mergedFiles.choices = ["ggh", "qqh", "vh", "ztt", "zll", "ttj", "vv", "wj", "data"] |
tuple reduce_mergedFiles.config |
list reduce_mergedFiles.default = ["ggh", "qqh", "vh", "ztt", "zll", "ttj", "vv", "wj", "data"] |
tuple reduce_mergedFiles.dir_path = os.path.expandvars(args.input_dir) |
tuple reduce_mergedFiles.file_name = file_path.split("/") |
dictionary reduce_mergedFiles.files_dict = {} |
list reduce_mergedFiles.give_away_list = [] |
string reduce_mergedFiles.help = "Input directory. Use directory of artusoutput, which contains merged folder" |
tuple reduce_mergedFiles.input_dir = os.path.join(dir_path, "merged/") |
list reduce_mergedFiles.list_of_samples = [getattr(samples.Samples, rs) for rs in args.samples] |
tuple reduce_mergedFiles.log = logging.getLogger(__name__) |
list reduce_mergedFiles.n = ntuple_list[fnum] |
tuple reduce_mergedFiles.n2 = n.replace(args.rs, front, 1) |
list reduce_mergedFiles.ntuple = config["folders"] |
list reduce_mergedFiles.ntuple_list = [ntuple for x in range(len(real_files))] |
tuple reduce_mergedFiles.output_dir = os.path.join(dir_path, "reduced/") |
tuple reduce_mergedFiles.parser |
list reduce_mergedFiles.plot_configs = [] |
list reduce_mergedFiles.real_files = [] |
tuple reduce_mergedFiles.sample_settings = samples.Samples() |
list reduce_mergedFiles.w = weight_list[fnum] |
list reduce_mergedFiles.weight = config["weights"] |
list reduce_mergedFiles.weight_list = [weight for x in range(len(real_files))] |