Jet
Jet
class JetA 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]Attributes
| Name | Description |
|---|---|
constituent_indices |
Return sorted positions of the input momenta assigned to this jet. |
momentum |
Return the recombined four-momentum of this jet. |
phi |
Return the jet azimuthal angle in radians. |
pt |
Return the jet transverse momentum. |
rapidity |
Return the jet rapidity. |
constituent_indices
Jet.constituent_indices: builtins.list[builtins.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]momentum
Jet.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.ptphi
Jet.phi: builtins.floatReturn the jet azimuthal angle in radians.
Examples
Using the setup in the Jet class example:
azimuth = leading_jet.phipt
Jet.pt: builtins.floatReturn the jet transverse momentum.
Examples
Using the setup in the Jet class example:
assert leading_jet.pt == 50.0rapidity
Jet.rapidity: builtins.floatReturn the jet rapidity.
Examples
Using the setup in the Jet class example:
assert leading_jet.rapidity == 0.0Methods
| Name | Description |
|---|---|
__repr__ |
Return a concise jet summary with its kinematics and constituent count. |
_repr_html_ |
Render the jet kinematics as a compact notebook table. |
_repr_pretty_ |
Write the concise jet summary to an IPython pretty printer. |
__repr__
Jet.__repr__() -> builtins.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_
Jet._repr_html_() -> builtins.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_
Jet._repr_pretty_(pretty: typing.Any, cycle: builtins.bool) -> NoneWrite 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
pretty(object) The IPython pretty-printer object.cycle(bool) Whether this object is part of a recursive formatting cycle.