Jet
symbolica.community.hepkit Class
Jet()A reconstructed collider jet and its input-particle constituents.
Jets are returned by JetDefinition.cluster and expose the recombined four-momentum together with the indices of their original inputs.
Examples
from symbolica import S, E
from symbolica.community import hepkit as hep
particles = [hep.FourMomentum(50.0, 30.0, 40.0, 0.0),
hep.FourMomentum(25.0, -15.0, -20.0, 0.0)]
definition = hep.JetDefinition.anti_kt(radius=0.4, minimum_pt=20.0)
clustering = definition.cluster(particles)
jets = clustering.jets
leading_jet = jets[0]
assert leading_jet.pt == 50.0
inputs = [particles[i] for i in leading_jet.constituent_indices]Member details
momentum
Property · read-only#momentum: FourMomentumReturn the recombined four-momentum of this jet.
Examples
Using the setup in the Jet class example:
assert leading_jet.momentum.pt == leading_jet.ptconstituent_indices
Property · read-only#constituent_indices: list[int] Return sorted positions of the input momenta assigned to this jet.
Examples
Using the setup in the Jet class example:
inputs = [particles[i] for i in leading_jet.constituent_indices]pt
Property · read-only#pt: floatReturn the jet transverse momentum.
Examples
Using the setup in the Jet class example:
assert leading_jet.pt == 50.0rapidity
Property · read-only#rapidity: floatReturn the jet rapidity.
Examples
Using the setup in the Jet class example:
assert leading_jet.rapidity == 0.0phi
Property · read-only#phi: floatReturn the jet azimuthal angle in radians.
Examples
Using the setup in the Jet class example:
azimuth = leading_jet.phi__repr__
Method#__repr__() -> strReturn a concise jet summary with its kinematics and constituent count.
Examples
Using the setup in the Jet class example:
summary = repr(leading_jet)_repr_html_
Method#_repr_html_() -> strRender the jet kinematics as a compact notebook table.
Examples
Using the setup in the Jet class example:
from IPython.display import display
display(leading_jet)_repr_pretty_
Method#_repr_pretty_(pretty: Any, cycle: bool) -> None Write the concise jet summary to an IPython pretty printer.
Examples
Using the setup in the Jet class example:
from IPython.lib.pretty import pretty
text = pretty(leading_jet)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
pretty | Any | — | The IPython pretty-printer object. |
cycle | bool | — | Whether this object is part of a recursive formatting cycle. |
View generated signature source: docs/api/python/feynkit-community.pyi:5973