SphericalThreeVector
- class coffea.nanoevents.methods.vector.SphericalThreeVector[source]
Bases:
ThreeVector
,PolarTwoVector
A spherical coordinate 3-dimensional vector
This mixin class requires the parent class to provide items
rho
,theta
, andphi
. Some additional properties are overridden for performanceAttributes Summary
Alias for
rho
Squared
p
Distance from origin in XY plane
Distance from origin in 3D
Inclination angle from XY plane
Cartesian z value
Methods Summary
multiply
(other)Multiply this vector by a scalar elementwise using
x
,y
, andz
componentsnegative
()Returns the negative of the vector
Attributes Documentation
- r
Distance from origin in XY plane
\(\sqrt{x^2+y^2} = \rho \sin(\theta)\)
- rho
Distance from origin in 3D
\(\sqrt{x^2+y^2+z^2} = \sqrt{r^2+z^2}\)
- theta
Inclination angle from XY plane
\(\text{arctan2}(r, z)\)
- z
Cartesian z value
\(\rho \cos(\theta)\)
Methods Documentation