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

Functions

def ztt_stitching
 
def scale_variation_mm
 
def scale_variation_tt
 

Variables

tuple parser = argparse.ArgumentParser(description='Script to calculate Z->tautau over Z->mumu ratios under mu_F and mu_R scale variations.')
 
tuple args = parser.parse_args()
 
list tautau_channels = ["mt","et","tt","em"]
 
list categories = ["btag", "nobtag","inclusive"]
 
list mtet_subcategories = ["loosemt","tight","inclusive"]
 
list em_subcategories = ["highPzeta","mediumPzeta","lowPzeta","inclusive"]
 
list scale_variation_weights = ["muR0p5_muF0p5_weight","muR1p0_muF0p5_weight","muR0p5_muF1p0_weight","muR1p0_muF2p0_weight","muR2p0_muF1p0_weight","muR2p0_muF2p0_weight","1"]
 
dictionary selection = {}
 
dictionary weights = {}
 
dictionary mm_weights = {}
 
dictionary ratios = {}
 
dictionary mm_yields = {}
 
dictionary tt_yields = {}
 
dictionary mm_hists = {}
 
dictionary tt_hists = {}
 
string name = ""
 
string weight = ""
 
tuple selection_weights = open("./ztt_zmm_normalization/selection_weights.json","w")
 
 inputDYfiles = args.input_LO_DY
 
tuple lo_dy_file_list = glob.glob(inputDYfiles)
 
 inputDYNLOfile = args.input_NLO_DY
 
tuple pool = Pool(processes=7)
 Perform scale variations. More...
 
tuple results = pool.map(scale_variation_mm,[(svw,weight) for svw in scale_variation_weights])
 
tuple nlo_mm = r.TChain()
 
string hist_name = "nlo_mm_hist_"
 
string mm_weight = "_"
 
string folder_string = "/"
 
tuple nlo = r.TChain()
 
tuple ratios_file = open("./ztt_zmm_normalization/ratios.json","w")
 
dictionary intervals = {}
 
list ratio_variations = [ratios[weight][r_key] for r_key in ratios[weight] if not r_key in ["1","nlo"]]
 
tuple intervals_file = open("./ztt_zmm_normalization/intervals.json","w")
 

Function Documentation

def scaleVariations_ZttOverZmumu.scale_variation_mm (   argument = ("1","1")
def scaleVariations_ZttOverZmumu.scale_variation_tt (   argument = ("1","1",
  folder_string 
)
def scaleVariations_ZttOverZmumu.ztt_stitching ( )

Variable Documentation

tuple scaleVariations_ZttOverZmumu.args = parser.parse_args()
list scaleVariations_ZttOverZmumu.categories = ["btag", "nobtag","inclusive"]
list scaleVariations_ZttOverZmumu.em_subcategories = ["highPzeta","mediumPzeta","lowPzeta","inclusive"]
string scaleVariations_ZttOverZmumu.folder_string = "/"
string scaleVariations_ZttOverZmumu.hist_name = "nlo_mm_hist_"
scaleVariations_ZttOverZmumu.inputDYfiles = args.input_LO_DY
scaleVariations_ZttOverZmumu.inputDYNLOfile = args.input_NLO_DY
dictionary scaleVariations_ZttOverZmumu.intervals = {}
tuple scaleVariations_ZttOverZmumu.intervals_file = open("./ztt_zmm_normalization/intervals.json","w")
tuple scaleVariations_ZttOverZmumu.lo_dy_file_list = glob.glob(inputDYfiles)
dictionary scaleVariations_ZttOverZmumu.mm_hists = {}
string scaleVariations_ZttOverZmumu.mm_weight = "_"
dictionary scaleVariations_ZttOverZmumu.mm_weights = {}
dictionary scaleVariations_ZttOverZmumu.mm_yields = {}
list scaleVariations_ZttOverZmumu.mtet_subcategories = ["loosemt","tight","inclusive"]
string scaleVariations_ZttOverZmumu.name = ""
tuple scaleVariations_ZttOverZmumu.nlo = r.TChain()
tuple scaleVariations_ZttOverZmumu.nlo_mm = r.TChain()
tuple scaleVariations_ZttOverZmumu.parser = argparse.ArgumentParser(description='Script to calculate Z->tautau over Z->mumu ratios under mu_F and mu_R scale variations.')
tuple scaleVariations_ZttOverZmumu.pool = Pool(processes=7)

Perform scale variations.

list scaleVariations_ZttOverZmumu.ratio_variations = [ratios[weight][r_key] for r_key in ratios[weight] if not r_key in ["1","nlo"]]
dictionary scaleVariations_ZttOverZmumu.ratios = {}
tuple scaleVariations_ZttOverZmumu.ratios_file = open("./ztt_zmm_normalization/ratios.json","w")
tuple scaleVariations_ZttOverZmumu.results = pool.map(scale_variation_mm,[(svw,weight) for svw in scale_variation_weights])
list scaleVariations_ZttOverZmumu.scale_variation_weights = ["muR0p5_muF0p5_weight","muR1p0_muF0p5_weight","muR0p5_muF1p0_weight","muR1p0_muF2p0_weight","muR2p0_muF1p0_weight","muR2p0_muF2p0_weight","1"]
dictionary scaleVariations_ZttOverZmumu.selection = {}
tuple scaleVariations_ZttOverZmumu.selection_weights = open("./ztt_zmm_normalization/selection_weights.json","w")
list scaleVariations_ZttOverZmumu.tautau_channels = ["mt","et","tt","em"]
dictionary scaleVariations_ZttOverZmumu.tt_hists = {}
dictionary scaleVariations_ZttOverZmumu.tt_yields = {}
string scaleVariations_ZttOverZmumu.weight = ""
dictionary scaleVariations_ZttOverZmumu.weights = {}