LorentzVector
- class coffea.nanoevents.methods.vector.LorentzVector[source]
Bases:
ThreeVector
A cartesian Lorentz vector
A heavy emphasis towards a momentum vector interpretation is assumed. (+, -, -, -) metric This mixin class requires the parent class to provide items
x
,y
,z
, andt
.Attributes Summary
The
x
,y
andz
components divided byt
as aThreeVector
Alias for
t
Pseudorapidity
Invariant mass (+, -, -, -)
Squared
mass
The
x
,y
andz
components as aThreeVector
Methods Summary
absolute
()Magnitude of this Lorentz vector
add
(other)Add two vectors together elementwise using
x
,y
,z
, andt
componentsboost
(other)Apply a Lorentz boost given by the
ThreeVector
other
and return itdelta_r
(other)Distance between two Lorentz vectors in (eta,phi) plane
delta_r2
(other)Squared
delta_r
multiply
(other)Multiply this vector by a scalar elementwise using
x
,y
,z
, andt
componentsnegative
()Returns the negative of the vector
subtract
(other)Subtract a vector from another elementwise using
x
,y
,z
, andt
componentssum
([axis])Sum an array of vectors elementwise using
x
,y
,z
, andt
componentsAttributes Documentation
- boostvec
The
x
,y
andz
components divided byt
as aThreeVector
This can be used for boosting. For cases where
|t| <= rho
, this returns the unit vector.
- eta
Pseudorapidity
\(-\ln[\tan(\theta/2)] = \text{arcsinh}(z/r)\)
- mass
Invariant mass (+, -, -, -)
\(\sqrt{t^2-x^2-y^2-z^2}\)
- metric_table
- nearest
- pvec
The
x
,y
andz
components as aThreeVector
- rapidity
Methods Documentation
- boost(other)[source]
Apply a Lorentz boost given by the
ThreeVector
other
and return itNote that this follows the convention that, for example in order to boost a vector into its own rest frame, one needs to use the negative of its
boostvec
- delta_r(other)[source]
Distance between two Lorentz vectors in (eta,phi) plane
\(\sqrt{\Delta\eta^2 + \Delta\phi^2}\)