PolarTwoVector
- class coffea.nanoevents.methods.vector.PolarTwoVector[source]
Bases:
TwoVector
A polar coordinate 2-dimensional vector
This mixin class requires the parent class to provide items
r
andphi
. Some additional properties are overridden for performanceAttributes Summary
Azimuthal angle relative to X axis in XY plane
Distance from origin in XY plane
Squared
r
Cartesian x value
Cartesian y value
Methods Summary
multiply
(other)Multiply this vector by a scalar elementwise using using
x
andy
componentsnegative
()Returns the negative of the vector
Attributes Documentation
- phi
Azimuthal angle relative to X axis in XY plane
\(\text{arctan2}(y, x)\)
- r
Distance from origin in XY plane
\(\sqrt{x^2+y^2}\)
- x
Cartesian x value
\(r \cos{\phi}\)
- y
Cartesian y value
\(r \sin{\phi}\)
Methods Documentation