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

Namespaces

 scaleVariations_ZttOverZmumu
 

Functions

def scaleVariations_ZttOverZmumu.ztt_stitching
 
def scaleVariations_ZttOverZmumu.scale_variation_mm
 
def scaleVariations_ZttOverZmumu.scale_variation_tt
 

Variables

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.args = parser.parse_args()
 
list scaleVariations_ZttOverZmumu.tautau_channels = ["mt","et","tt","em"]
 
list scaleVariations_ZttOverZmumu.categories = ["btag", "nobtag","inclusive"]
 
list scaleVariations_ZttOverZmumu.mtet_subcategories = ["loosemt","tight","inclusive"]
 
list scaleVariations_ZttOverZmumu.em_subcategories = ["highPzeta","mediumPzeta","lowPzeta","inclusive"]
 
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 = {}
 
dictionary scaleVariations_ZttOverZmumu.weights = {}
 
dictionary scaleVariations_ZttOverZmumu.mm_weights = {}
 
dictionary scaleVariations_ZttOverZmumu.ratios = {}
 
dictionary scaleVariations_ZttOverZmumu.mm_yields = {}
 
dictionary scaleVariations_ZttOverZmumu.tt_yields = {}
 
dictionary scaleVariations_ZttOverZmumu.mm_hists = {}
 
dictionary scaleVariations_ZttOverZmumu.tt_hists = {}
 
string scaleVariations_ZttOverZmumu.name = ""
 
string scaleVariations_ZttOverZmumu.weight = ""
 
tuple scaleVariations_ZttOverZmumu.selection_weights = open("./ztt_zmm_normalization/selection_weights.json","w")
 
 scaleVariations_ZttOverZmumu.inputDYfiles = args.input_LO_DY
 
tuple scaleVariations_ZttOverZmumu.lo_dy_file_list = glob.glob(inputDYfiles)
 
 scaleVariations_ZttOverZmumu.inputDYNLOfile = args.input_NLO_DY
 
tuple scaleVariations_ZttOverZmumu.pool = Pool(processes=7)
 Perform scale variations. More...
 
tuple scaleVariations_ZttOverZmumu.results = pool.map(scale_variation_mm,[(svw,weight) for svw in scale_variation_weights])
 
tuple scaleVariations_ZttOverZmumu.nlo_mm = r.TChain()
 
string scaleVariations_ZttOverZmumu.hist_name = "nlo_mm_hist_"
 
string scaleVariations_ZttOverZmumu.mm_weight = "_"
 
string scaleVariations_ZttOverZmumu.folder_string = "/"
 
tuple scaleVariations_ZttOverZmumu.nlo = r.TChain()
 
tuple scaleVariations_ZttOverZmumu.ratios_file = open("./ztt_zmm_normalization/ratios.json","w")
 
dictionary scaleVariations_ZttOverZmumu.intervals = {}
 
list scaleVariations_ZttOverZmumu.ratio_variations = [ratios[weight][r_key] for r_key in ratios[weight] if not r_key in ["1","nlo"]]
 
tuple scaleVariations_ZttOverZmumu.intervals_file = open("./ztt_zmm_normalization/intervals.json","w")