-
graphicle.select.centroid_prune(pmu: MomentumArray, radius: float, mask: MaskArray | None =
None, centre: tuple[float, float] | None =None) MaskArray[source] For a given
MomentumArray, calculate the distance every particle is from a centroid location, and return aMaskArrayfor all of the particles which are within a givenradius. Ifcentreis not provided, the transverse momentum weighted centroid will be used.New in version 0.2.4.
- Parameters:¶
- pmu : MomentumArray¶
Four-momenta, \(p_\mu\), of particles in the set.
- radius : float¶
Euclidean distance, or Radius \(R\), in the pseudorapidity-azimuth, \(\eta-\phi\), plane from the centroid, beyond which particles will be filtered out.
- mask : MaskArray, optional¶
If provided, will apply the mask to the passed
pmu, and outputMaskArraywill have the same length.- centre : tuple[float, float]¶
Pseudorapidity and azimuth coordinates for a user-defined centroid.
- Returns:¶
Mask which retains only the particles within
radiusof the centroid.- Return type:¶
Last update:
Jun 27, 2025