scikit-hep / vector

Vector classes and utilities
https://vector.readthedocs.io
BSD 3-Clause "New" or "Revised" License
81 stars 27 forks source link

Allow momentum type coordinates in `to_Vector*D` methods #382

Closed Saransh-cpp closed 8 months ago

Saransh-cpp commented 1 year ago

If so, then a user might justifiably expect to pass pz instead or z, but only in the momentum case. Just something to consider, at this point.

When this gets extended to to_Vector4D, the time component has a lot of momentum synonyms. The geometric names for the two possible temporal coordinates are t and tau, but the momentum names are energy and mass, E and M, and (I think) e and m. There was a discussion once about including the lowercase as well as the uppercase.

_Originally posted by @jpivarski in https://github.com/scikit-hep/vector/pull/319#discussion_r1115886750_