jaggedarray.sum() when the jaggedarray is a TLorentzVector (or TVector3 or TVector2) failed because its __array_ufunc__ doesn't implement reduceat. Instead of trying to wedge this in, we just override sum() in these methods to get exactly the right behavior.
jaggedarray.sum()
when thejaggedarray
is aTLorentzVector
(orTVector3
orTVector2
) failed because its__array_ufunc__
doesn't implementreduceat
. Instead of trying to wedge this in, we just overridesum()
in these methods to get exactly the right behavior.