-
graphicle.data.MomentumArray.delta_R(other: MomentumArray, pseudo: bool =
True, threads: int =1) ndarray[Any, dtype[float64]][source] Calculates the Euclidean inter-particle distances, \(\Delta R_{ij}\), in the \(\eta-\phi\) plane between this set of particles and a provided
otherset. Produces amxnmatrix, wheremis number of particles in this MomentumArray, andnis the number of particles in other.Changed in version 0.1.5: Computes 2D matrix of inter-particle distances, enabling comparisons between arbitrary length
MomentumArrayinstances.Changed in version 0.2.11: Added
pseudoandthreadsparameters.- Parameters:¶
- Returns:¶
Matrix representing the Euclidean distance between the two sets of particles in the \(\eta-\phi\) plane. Rows represent particles in this particle set, and columns particles in the other set.
- Return type:¶
ndarray[float64]
Notes
Infinite values may be encountered if comparing with particles not present on the \(\eta-\phi\) plane, ie. travelling parallel to the beam axis.
Currently multithreading is only enabled for computing distances between particles within the same point cloud, ie. when passing the same instance to the
otherparameter.
Last update:
Jun 27, 2025