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

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 = []
 

Function Documentation

def reduce_mergedFiles.reduce_file (   input_dict)

Variable Documentation

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
Initial value:
1 = sample_settings.get_config(
2  samples=list_of_samples,
3  channel=channel,
4  category=category,
5  higgs_masses=args.higgs_masses,
6  normalise_signal_to_one_pb=False,
7  ztt_from_mc=False,
8  exclude_cuts=args.exclude_cuts,
9  stack_signal=False,
10  scale_signal=1.0,
11  mssm=False
12  )
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
Initial value:
1 = argparse.ArgumentParser(description="Produce reduced samples and calculate correlations",
2  parents=[logger.loggingParser])
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))]