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

Namespaces

 scaleVariations_ZttOverZttInclusive
 

Functions

def scaleVariations_ZttOverZttInclusive.embedding_stitchingweight_mt
 
def scaleVariations_ZttOverZttInclusive.embedding_stitchingweight_et
 
def scaleVariations_ZttOverZttInclusive.embedding_stitchingweight
 
def scaleVariations_ZttOverZttInclusive.ztt_stitching
 
def scaleVariations_ZttOverZttInclusive.scale_variation_tt
 

Variables

tuple scaleVariations_ZttOverZttInclusive.parser = argparse.ArgumentParser(description='Script to calculate Z->tautau over Z->mumu ratios under mu_F and mu_R scale variations.')
 
tuple scaleVariations_ZttOverZttInclusive.args = parser.parse_args()
 
list scaleVariations_ZttOverZttInclusive.tautau_channels = ["mt","et"]
 
list scaleVariations_ZttOverZttInclusive.categories = ["btag", "nobtag","inclusive"]
 
list scaleVariations_ZttOverZttInclusive.mtet_subcategories = ["loosemt","tight","inclusive"]
 
list scaleVariations_ZttOverZttInclusive.em_subcategories = ["highPzeta","mediumPzeta","lowPzeta","inclusive"]
 
list scaleVariations_ZttOverZttInclusive.scale_variation_weights = ["muR0p5_muF0p5_weight","muR1p0_muF0p5_weight","muR0p5_muF1p0_weight","muR1p0_muF2p0_weight","muR2p0_muF1p0_weight","muR2p0_muF2p0_weight","1"]
 
dictionary scaleVariations_ZttOverZttInclusive.selection = {}
 
dictionary scaleVariations_ZttOverZttInclusive.weights = {}
 
dictionary scaleVariations_ZttOverZttInclusive.ratios = {}
 
dictionary scaleVariations_ZttOverZttInclusive.tt_yields = {}
 
dictionary scaleVariations_ZttOverZttInclusive.tt_hists = {}
 
string scaleVariations_ZttOverZttInclusive.name = ""
 
string scaleVariations_ZttOverZttInclusive.weight = ""
 
tuple scaleVariations_ZttOverZttInclusive.selection_weights = open("./ztt_yields_comparison/selection_weights.json","w")
 
 scaleVariations_ZttOverZttInclusive.inputDYfiles = args.input_LO_DY
 
tuple scaleVariations_ZttOverZttInclusive.lo_dy_file_list = glob.glob(inputDYfiles)
 
 scaleVariations_ZttOverZttInclusive.inputDYNLOfile = args.input_NLO_DY
 
 scaleVariations_ZttOverZttInclusive.inputEmbeddingfile = args.input_ZTT_embedded
 
 scaleVariations_ZttOverZttInclusive.inputTTbarfile = args.input_TTbar
 
tuple scaleVariations_ZttOverZttInclusive.embedding_file_list = glob.glob(inputEmbeddingfile)
 
string scaleVariations_ZttOverZttInclusive.mm_weight = "_"
 
string scaleVariations_ZttOverZttInclusive.folder_string = "/"
 
tuple scaleVariations_ZttOverZttInclusive.pool = Pool(processes=7)
 
tuple scaleVariations_ZttOverZttInclusive.results = pool.map(scale_variation_tt,[(svw,weight,folder_string) for svw in scale_variation_weights])
 
tuple scaleVariations_ZttOverZttInclusive.nlo = r.TChain()
 
string scaleVariations_ZttOverZttInclusive.hist_name = "nlo_hist"
 
tuple scaleVariations_ZttOverZttInclusive.embedding = r.TChain()
 
list scaleVariations_ZttOverZttInclusive.embedding_selection = weights[weight]
 
tuple scaleVariations_ZttOverZttInclusive.ttbar = r.TChain()
 
dictionary scaleVariations_ZttOverZttInclusive.intervals = {}
 
tuple scaleVariations_ZttOverZttInclusive.ratios_file = open("./ztt_yields_comparison/ratios.json","w")
 
dictionary scaleVariations_ZttOverZttInclusive.invervalls = {}
 
list scaleVariations_ZttOverZttInclusive.variations = [ratios[weight][r_key] for r_key in ratios[weight] if not r_key in ["1","nlo","embedding"]]
 
tuple scaleVariations_ZttOverZttInclusive.intervals_file = open("./ztt_yields_comparison/intervals.json","w")