本文整理汇总了Python中mcasym.num函数的典型用法代码示例。如果您正苦于以下问题:Python num函数的具体用法?Python num怎么用?Python num使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了num函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: analyze
def analyze(event, jet_trigger_filter, **kw):
for jet in event.jets():
if accept_jet(event, jet) and jet_trigger_filter(event, jet):
for track in filter(event.charge_filter, event.matchedPairs()):
if accept_track(track) and abs(track.DeltaPhi(jet))>2.0:
z = track.ptPr()/shifted(event.year, jet.Pt())
yield (z, mcasym.num('ZERO', event))
示例2: analyze
def analyze(event, jet_trigger_filter, **kw):
for jet in event.jets():
if accept_jet(event, jet) and jet_trigger_filter(event, jet):
for track in filter(event.charge_filter, event.matchedPairs()):
if accept_track(track) and abs(track.DeltaPhi(jet))>2.0:
true_pt = shifted(event.year, jet.Pt())
z = track.ptPr()/true_pt
weight = minbias_jet_weight_true(true_pt)
yield (z, weight*mcasym.num('ZERO', event))
示例3: analyze
def analyze(event, **kw):
for track in event.matchedPairs():
if event.charge_filter(track) and accept_track(track):
yield (track.pt(), mcasym.num("P045", event))
示例4: analyze
def analyze(event, **kw):
for track in event.pythiaRecord():
if event.charge_filter(track) and accept_track(track):
yield (track.vec.Pt(), mcasym.num('M045', event))