FeynKit · latest
On this page

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: FourMomentum

Return the recombined four-momentum of this jet.

Examples

Using the setup in the Jet class example:

assert leading_jet.momentum.pt == leading_jet.pt

constituent_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: float

Return the jet transverse momentum.

Examples

Using the setup in the Jet class example:

assert leading_jet.pt == 50.0

rapidity

Property · read-only#
rapidity: float

Return the jet rapidity.

Examples

Using the setup in the Jet class example:

assert leading_jet.rapidity == 0.0

phi

Property · read-only#
phi: float

Return the jet azimuthal angle in radians.

Examples

Using the setup in the Jet class example:

azimuth = leading_jet.phi

__repr__

Method#
__repr__() -> str

Return 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_() -> str

Render 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

NameTypeDefaultDescription
prettyAny—

The IPython pretty-printer object.

cyclebool—

Whether this object is part of a recursive formatting cycle.