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

Functions

def plot_overlap
 

Variables

tuple log = logging.getLogger(__name__)
 
tuple parser
 
string help = "Path to ArtusOutput"
 
string default = "./"
 
tuple args = parser.parse_args()
 
tuple exp_dict = expressions.ExpressionsDict()
 
list plot_configs = []
 
list list_of_samples = [getattr(samples.Samples, sample) for sample in args.Samples]
 
tuple sample_settings = samples.Samples()
 
tuple config
 
list firsts = [exp_dict.replace_expressions(s) for s in args.first_category]
 
list seconds = [exp_dict.replace_expressions(s) for s in args.second_category]
 
list list_of_args_strings = [args.args]
 
list names = []
 
list ratio_names = []
 
 add = nick
 
tuple tfile = ROOT.TFile(os.path.join(args.output_dir, args.filename+".root"), "READ")
 
list triples = []
 
list denominator = [0,0,0]
 
list numerator = [0,0,0]
 
tuple histogram = tfile.Get(name)
 
list ratio = [numerator[x]/denominator[x] if denominator[x]>0 else 0 for x in range(3)]
 

Function Documentation

def makePlots_categoryOverlap.plot_overlap (   triple_list,
  names,
  file_path = "Testfile",
  kwargs 
)

Variable Documentation

makePlots_categoryOverlap.add = nick
tuple makePlots_categoryOverlap.args = parser.parse_args()
tuple makePlots_categoryOverlap.config
Initial value:
1 = sample_settings.get_config(
2  samples=list_of_samples,
3  channel=args.channel,
4  category="1.0",
5  weight="1.0",
6  higgs_masses=args.higgs_masses,
7  normalise_signal_to_one_pb=False,
8  exclude_cuts=args.exclude_cuts
9  )
string makePlots_categoryOverlap.default = "./"
list makePlots_categoryOverlap.denominator = [0,0,0]
tuple makePlots_categoryOverlap.exp_dict = expressions.ExpressionsDict()
list makePlots_categoryOverlap.firsts = [exp_dict.replace_expressions(s) for s in args.first_category]
string makePlots_categoryOverlap.help = "Path to ArtusOutput"
tuple makePlots_categoryOverlap.histogram = tfile.Get(name)
list makePlots_categoryOverlap.list_of_args_strings = [args.args]
list makePlots_categoryOverlap.list_of_samples = [getattr(samples.Samples, sample) for sample in args.Samples]
tuple makePlots_categoryOverlap.log = logging.getLogger(__name__)
list makePlots_categoryOverlap.names = []
list makePlots_categoryOverlap.numerator = [0,0,0]
tuple makePlots_categoryOverlap.parser
Initial value:
1 = argparse.ArgumentParser(description="Plot overlapping signal events.",
2  parents=[logger.loggingParser])
list makePlots_categoryOverlap.plot_configs = []
list makePlots_categoryOverlap.ratio = [numerator[x]/denominator[x] if denominator[x]>0 else 0 for x in range(3)]
list makePlots_categoryOverlap.ratio_names = []
tuple makePlots_categoryOverlap.sample_settings = samples.Samples()
list makePlots_categoryOverlap.seconds = [exp_dict.replace_expressions(s) for s in args.second_category]
tuple makePlots_categoryOverlap.tfile = ROOT.TFile(os.path.join(args.output_dir, args.filename+".root"), "READ")
list makePlots_categoryOverlap.triples = []