Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

ValueError/KeyError after boosting PtEtaPhiMassLorentzVectorArray #86

Open
jrueb opened this issue May 27, 2020 · 0 comments
Open

ValueError/KeyError after boosting PtEtaPhiMassLorentzVectorArray #86

jrueb opened this issue May 27, 2020 · 0 comments

Comments

@jrueb
Copy link
Contributor

jrueb commented May 27, 2020

When boosting a PtEtaPhiMassLorentzVectorArray, the resulting object is in an invalid state, such that all of the properties (such as x, y, pt, eta) raise errors.

import uproot_methods
vec = uproot_methods.TLorentzVectorArray.from_ptetaphim([1], [1], [1], [1])
boost = uproot_methods.TVector3Array.from_cartesian([0.1],[0.1],[0.1])
vecboosted = vec.boost(boost)
print(vecboosted.pt)

Same is true for rotate_axis and rotate_euler.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant