Releases: scikit-hep/uproot3-methods
0.4.4
Added type checks to TLorentzVector*
, TVector3*
, TVector2*
constructor arguments to prevent common mistakes.
Also fixed a bug related that prevented TLorentzVectorArray + TLorentzVectorArray in some cases. (Nested within a JaggedArray, the class identity of TLorentzVectorArray sometimes wasn't carried through.)
0.4.3
Merged PR #42, which implements TH3.
It also introduces the following breaking changes in TH2:
xedges
,yedges
are swapped (to their correct order).numpy()
returns a nested structure, likenumpy.histogramdd
, unlikenumpy.histogram2d
:
bin_content, (xedges, yedges) = th2.numpy()
for consistency with
bin_content, (xedges, yedges, zedges) = th3.numpy()
0.4.2
@lgray introduced PtEtaPhiMassLorentzVector
and PtEtaPhiMassLorentzVectorArray
, which internally represent Lorentz vectors in cylindrical/kinematic coordinates, rather than cartesian. This avoids unnecessary conversions to cartesian if your data source is cylindrical/kinematic and you never need cartesian coordinates.
Also, @guitargeek fixed a bug in TLorentzVector caching for cases in which array.content != array.flatten()
(non-trivial physical structure for a given logical structure of jagged array).