-
graphicle.calculate.weighted_centroid(pmu: MomentumArray, pseudo: bool =
True) tuple[float, float][source] Calculates the \(p_T\)-weighted centroid for a set of particles in the (pseudo)rapidity-azimuth plane.
New in version 0.3.1.
- Parameters:¶
- pmu : MomentumArray¶
Momenta of the particles in the set.
- pseudo : bool¶
If
True, will use pseudorapidity. IfFalse, will use true rapidity. Default isTrue.
- Returns:¶
rapidity_centre, azimuth_centre – The \(p_T\)-weighted centroid of the particles.
- Return type:¶
See also
resultant_coordsCoordinates of the momentum sum.
Notes
The \(p_T\)-weighted centroid pseudorapidity is given by:
\[\bar \eta = \dfrac{\sum_j p_{T j} \eta_j} {\sum_k p_{T k}}\]For azimuth, \(\eta\) is swapped for \(\phi\), and the result is shifted to remain in the \([-\pi, +\pi]\) range.
Last update:
Jun 27, 2025