Esempio n. 1
0
    for i in range(1, 7):
        r = t[i - 1]._getWeight(id1, pt1, eta1, id2, pt2, eta2)
        lumi = Trigger['Full2016'][i]['lumi']
        lumiT = lumiT + lumi
        eff = eff + r[0] * lumi
        eff_up = eff_up + r[1] * lumi
        eff_down = eff_down + r[2] * lumi

    return [eff / lumiT, eff_up / lumiT, eff_down / lumiT]


##################################################################################################
################################ Starting execution ##############################################
##################################################################################################

trigger = triggerMaker()

triggerCalc = []

for i in range(1, 7):
    print i
    triggerCalc.append(triggerCalculator(Trigger, 'Full2016', i))

print produceTrigger(triggerCalc, 13, 11.775043, -0.981481, 13, 11.002916,
                     -1.142095)
print produceTrigger(triggerCalc, 11, 58.784824, 1.9521825, 11, 22.807735,
                     2.0053293)
print produceTrigger(triggerCalc, 13, 18.354320, 0.7860127, 13, 15.827502,
                     -0.185604)
print produceTrigger(triggerCalc, 13, 18.489389, -2.018490, 13, 14.972436,
                     -1.541828)
Esempio n. 2
0
    modules['adder'] = Grafter()
    modules['alias'] = AliasGrafter()
    modules['rootweighter'] = RootWeighter()
    #modules['wwfilter']         = WWPruner()
    #modules['wwflagger']        = WWFlagsGrafter()
    modules['puadder'] = PUpper()

    # filter duplicates
    modules['filterduplicates'] = FilterDuplicates()

    # filter using a json file
    modules['filterjson'] = FilterJSON()

    # trigger efficiency
    modules['efftfiller'] = EffTrgFiller()
    modules['trigMaker'] = triggerMaker()

    # id/isolation scale factors
    modules['idisofiller'] = IdIsoSFFiller()

    # specific variables for MC

    modules['mcweightscounter'] = mcWeightsCounter()
    modules['mcweightsfiller'] = mcWeightsFiller()

    # generator level variables
    modules['genvariablesfiller'] = genVariablesFiller()
    # gen lepton matching
    modules['genmatchvarfiller'] = GenMatchVarFiller()

    # new variables
Esempio n. 3
0
    modules['rootweighter']     = RootWeighter()
    #modules['wwfilter']         = WWPruner()
    #modules['wwflagger']        = WWFlagsGrafter()
    modules['puadder']          = PUpper()


# filter duplicates
    modules['filterduplicates']          = FilterDuplicates()

# filter using a json file
    modules['filterjson']          = FilterJSON()


# trigger efficiency
    modules['efftfiller']       = EffTrgFiller()
    modules['trigMaker']        = triggerMaker()

# id/isolation scale factors
    modules['idisofiller'] = IdIsoSFFiller()
    modules['multiidiso']  = MultiIdIsoSFFiller()
    modules['etaptlepsf']  = LeptonEtaPtCorrFactors()

# specific variables for MC

    modules['mcweightscounter'] = mcWeightsCounter()
    modules['mcweightsfiller']  = mcWeightsFiller()

# generator level variables
    modules['genvariablesfiller']  = genVariablesFiller()
# gen lepton matching
    modules['genmatchvarfiller']  = GenMatchVarFiller()