def tot_mom(jet_csts):
"""Jet momentum calculated from constituent 4-vectors."""
E_tot = np.sum(jet_csts['ET'] * np.cosh(jet_csts['eta']))
px_tot = np.sum(jet_csts['ET'] * np.cos(jet_csts['phi']))
py_tot = np.sum(jet_csts['ET'] * np.sin(jet_csts['phi']))
pz_tot = np.sum(jet_csts['ET'] * np.sinh(jet_csts['eta']))
return E_tot, px_tot, py_tot, pz_tot
评论列表
文章目录