class graphicle.data.ParticleSet(graphicle.base.ParticleBase)[source]

Composite of data structures containing particle set description.

New in version 0.1.0.

Parameters:
pdg : PdgArray

PDG codes.

pmu : MomentumArray

Four momenta.

color : ColorArray

Color / anti-color pairs.

helicity : HelicityArray

Helicity values.

status : StatusArray

Status codes from Monte-Carlo event generator.

final : MaskArray

Boolean array indicating final state in particle set.

pdg[source]

PDG codes.

Type:

PdgArray

pmu[source]

Four momenta, \(p_\mu\).

Type:

MomentumArray

color[source]

Color / anti-color pairs.

Type:

ColorArray

helicity[source]

Helicity values.

Type:

HelicityArray

status[source]

Status codes from Monte-Carlo event generator.

Type:

StatusArray

final[source]

Boolean array indicating final state in particle set.

Type:

MaskArray

Public members

__getitem__(key) ParticleSet[source]
__repr__() str[source]

Return repr(self).

__str__() str[source]

Return str(self).

copy() ParticleSet[source]

Copies the underlying data into a new ParticleSet instance.

classmethod from_lhe_event(event: LheEventInterface) ParticleSet[source]

Creates a ParticleSet instance directly from a data structure holding LHE data. This is useful when you want to study the hard process, without needing to shower or hadronize.

classmethod from_numpy(...) ParticleSet[source]

Creates a ParticleSet instance directly from numpy arrays.

serialize() ParticleSetSerialized[source]

Returns serialized data as a dictionary.

__eq__(other)[source]

Method generated by attrs for class ParticleSet.

__ne__(other)[source]

Method generated by attrs for class ParticleSet.

ParticleSet(pdg: PdgArray = NOTHING, ...)[source]

Method generated by attrs for class ParticleSet.

color : ColorArray[source]
final : MaskArray[source]
helicity : HelicityArray[source]
pdg : PdgArray[source]
pmu : MomentumArray[source]
status : StatusArray[source]

Last update: Jun 27, 2025