Functions | |
def | embedding_stitchingweight_mt |
def | embedding_stitchingweight_et |
def | embedding_stitchingweight |
def | ztt_stitching |
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"] |
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 | ratios = {} |
dictionary | tt_yields = {} |
dictionary | tt_hists = {} |
string | name = "" |
string | weight = "" |
tuple | selection_weights = open("./ztt_yields_comparison/selection_weights.json","w") |
inputDYfiles = args.input_LO_DY | |
tuple | lo_dy_file_list = glob.glob(inputDYfiles) |
inputDYNLOfile = args.input_NLO_DY | |
inputEmbeddingfile = args.input_ZTT_embedded | |
inputTTbarfile = args.input_TTbar | |
tuple | embedding_file_list = glob.glob(inputEmbeddingfile) |
string | mm_weight = "_" |
string | folder_string = "/" |
tuple | pool = Pool(processes=7) |
tuple | results = pool.map(scale_variation_tt,[(svw,weight,folder_string) for svw in scale_variation_weights]) |
tuple | nlo = r.TChain() |
string | hist_name = "nlo_hist" |
tuple | embedding = r.TChain() |
list | embedding_selection = weights[weight] |
tuple | ttbar = r.TChain() |
dictionary | intervals = {} |
tuple | ratios_file = open("./ztt_yields_comparison/ratios.json","w") |
dictionary | invervalls = {} |
list | variations = [ratios[weight][r_key] for r_key in ratios[weight] if not r_key in ["1","nlo","embedding"]] |
tuple | intervals_file = open("./ztt_yields_comparison/intervals.json","w") |
def scaleVariations_ZttOverZttInclusive.embedding_stitchingweight | ( | channel = "mt" | ) |
def scaleVariations_ZttOverZttInclusive.embedding_stitchingweight_et | ( | ) |
def scaleVariations_ZttOverZttInclusive.embedding_stitchingweight_mt | ( | ) |
def scaleVariations_ZttOverZttInclusive.scale_variation_tt | ( | argument = ("1","1" , |
|
folder_string | |||
) |
def scaleVariations_ZttOverZttInclusive.ztt_stitching | ( | ) |
tuple scaleVariations_ZttOverZttInclusive.args = parser.parse_args() |
list scaleVariations_ZttOverZttInclusive.categories = ["btag", "nobtag","inclusive"] |
list scaleVariations_ZttOverZttInclusive.em_subcategories = ["highPzeta","mediumPzeta","lowPzeta","inclusive"] |
tuple scaleVariations_ZttOverZttInclusive.embedding = r.TChain() |
tuple scaleVariations_ZttOverZttInclusive.embedding_file_list = glob.glob(inputEmbeddingfile) |
string scaleVariations_ZttOverZttInclusive.folder_string = "/" |
string scaleVariations_ZttOverZttInclusive.hist_name = "nlo_hist" |
scaleVariations_ZttOverZttInclusive.inputDYfiles = args.input_LO_DY |
scaleVariations_ZttOverZttInclusive.inputDYNLOfile = args.input_NLO_DY |
scaleVariations_ZttOverZttInclusive.inputEmbeddingfile = args.input_ZTT_embedded |
scaleVariations_ZttOverZttInclusive.inputTTbarfile = args.input_TTbar |
dictionary scaleVariations_ZttOverZttInclusive.intervals = {} |
tuple scaleVariations_ZttOverZttInclusive.intervals_file = open("./ztt_yields_comparison/intervals.json","w") |
dictionary scaleVariations_ZttOverZttInclusive.invervalls = {} |
tuple scaleVariations_ZttOverZttInclusive.lo_dy_file_list = glob.glob(inputDYfiles) |
string scaleVariations_ZttOverZttInclusive.mm_weight = "_" |
list scaleVariations_ZttOverZttInclusive.mtet_subcategories = ["loosemt","tight","inclusive"] |
string scaleVariations_ZttOverZttInclusive.name = "" |
tuple scaleVariations_ZttOverZttInclusive.nlo = r.TChain() |
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.pool = Pool(processes=7) |
dictionary scaleVariations_ZttOverZttInclusive.ratios = {} |
tuple scaleVariations_ZttOverZttInclusive.ratios_file = open("./ztt_yields_comparison/ratios.json","w") |
tuple scaleVariations_ZttOverZttInclusive.results = pool.map(scale_variation_tt,[(svw,weight,folder_string) for svw in scale_variation_weights]) |
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 = {} |
tuple scaleVariations_ZttOverZttInclusive.selection_weights = open("./ztt_yields_comparison/selection_weights.json","w") |
list scaleVariations_ZttOverZttInclusive.tautau_channels = ["mt","et"] |
dictionary scaleVariations_ZttOverZttInclusive.tt_hists = {} |
dictionary scaleVariations_ZttOverZttInclusive.tt_yields = {} |
tuple scaleVariations_ZttOverZttInclusive.ttbar = r.TChain() |
list scaleVariations_ZttOverZttInclusive.variations = [ratios[weight][r_key] for r_key in ratios[weight] if not r_key in ["1","nlo","embedding"]] |
string scaleVariations_ZttOverZttInclusive.weight = "" |
dictionary scaleVariations_ZttOverZttInclusive.weights = {} |