本文整理汇总了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))
开发者ID:gdwebb,项目名称:UnderlyingEvent,代码行数:7,代码来源:ZERO.py
示例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))
开发者ID:kocolosk,项目名称:analysis,代码行数:9,代码来源:ZERO.py
示例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))
开发者ID:gdwebb,项目名称:UnderlyingEvent,代码行数:4,代码来源:P045.py
示例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))
开发者ID:kocolosk,项目名称:analysis,代码行数:4,代码来源:M045.py
注:本文中的mcasym.num函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论