-
classmethod graphicle.data.ParticleSet.from_numpy(pdg: ndarray[Any, dtype[int32]] | None =
None, pmu: ndarray[Any, dtype[void]] | None =None, color: ndarray[Any, dtype[void]] | None =None, helicity: ndarray[Any, dtype[int16]] | None =None, status: ndarray[Any, dtype[int16]] | None =None, final: ndarray[Any, dtype[bool_]] | None =None) ParticleSet[source] Creates a ParticleSet instance directly from numpy arrays.
- Parameters:¶
- pdg : ndarray[int32], optional¶
PDG codes.
- pmu : ndarray[float64] or ndarray[void], optional¶
Four momenta, \(p_\mu\), formatted as a structured array with fields
('x', 'y', 'z', 'e')or an unstructured array with columns in that order.- color : ndarray[int32] or ndarray[void], optional¶
Color / anti-color pairs, formatted in columns of
('color', 'anticolor'), or as a structured array with those fields.- helicity : ndarray[int16], optional¶
Helicity values.
- status : ndarray[int32], optional¶
Status codes from Monte-Carlo event generator.
- final: ndarray[Any, dtype[bool_]] | None =
None¶ Boolean array indicating which particles are final state.
- Returns:¶
A composite object, wrapping the data provided in Graphicle objects, and providing a unified interface to them.
- Return type:¶
Last update:
Jun 27, 2025