class graphicle.base.EventInterface(Protocol)[source]

Defines the interface for a generic event object expected by graphicle’s routines. Attributes are stored as numpy arrays, with each element corresponding to a particle in an event. Attributes with ‘fields’ are numpy structured arrays.

New in version 0.1.7.

pdg[source]

PDG codes.

Type:

ndarray[int32]

pmu[source]

Four-momenta.

Type:

ndarray[float64], fields (“x”, “y”, “z”, “e”)

color[source]

QCD color codes.

Type:

ndarray[int32], fields (“color”, “anticolor”)

helicity[source]

Spin polarisation eigenvalues.

Type:

ndarray[int16]

status[source]

Status codes annotating particles describing their generation.

Type:

ndarray[int16]

final[source]

Mask identifying final particles in the event’s ancestry.

Type:

ndarray[bool_]

edges[source]

Ancestry of particles in event, encoded as a COO list of integers, describing a graph structure.

Type:

ndarray[int32], fields (“src”, “dst”)

Public members

property pdg : ndarray[Any, dtype[int32]][source]
property pmu : ndarray[Any, dtype[Any]][source]
property color : ndarray[Any, dtype[Any]][source]
property helicity : ndarray[Any, dtype[int16]][source]
property status : ndarray[Any, dtype[int16]][source]
property final : ndarray[Any, dtype[bool_]][source]
property edges : ndarray[Any, dtype[Any]][source]
__subclasshook__()[source]

Abstract classes can override this to customize issubclass().

EventInterface(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod __init_subclass__(*args, **kwargs)[source]

This method is called when a class is subclassed.

EventInterface[params][source]

Last update: Jun 27, 2025