graphicle.calculate.aggregate_momenta(pmu: MomentumArray, cluster_masks: Iterable[MaskArray]) MomentumArray[source]

Calculates the aggregate momenta for a sequence of clusters over the same point cloud of particles.

New in version 0.2.14.

Parameters:
pmu : MomentumArray

Four-momenta of particles in the point cloud.

cluster_masks : Iterable[MaskArray]

Iterable of boolean masks identifying which particles belong to each of the clusterings.

Returns:

Where each element represents the sum aggregate four-momenta of each cluster, in the same order passed via clusters.

Return type:

MomentumArray


Last update: Jun 27, 2025