Reference

Contents

Index

LorentzVectorBase.PtEtaPhiMType
PtEtaPhiM <: AbstractCoordinateSystem

Cylindrical coordinate system for four-momenta. Using this requires the implementation of the following interface functions:

pt(::CustomFourMomentum)
eta(::CustomFourMomentum)
phi(::CustomFourMomentum)
mass(::CustomFourMomentum)
source
LorentzVectorBase.XYZEType
XYZE <: AbstractCoordinateSystem

Cartesian coordinate system for four-momenta. Using this requires the implementation of the following interface functions:

px(::CustomFourMomentum)
py(::CustomFourMomentum)
pz(::CustomFourMomentum)
energy(::CustomFourMomentum)
source
LorentzVectorBase.boost_betaMethod
boost_beta(::XYZE, mom )

Return spatialmagnitude of the beta vector for a given four-momentum, i.e. the spatialmagnitude of the four-momentum divided by its 0-component.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to sqrt(px^2 + py^2 + pz^2)/E.

source
LorentzVectorBase.boost_gammaMethod
boost_gamma(::XYZE,mom)

Return the relativistic gamma factor for a given four-momentum, i.e. the inverse square root of one minus the beta vector squared.

Example

If (px,py,pz,E) is a four-momentum with beta vector β, this is equivalent to 1/sqrt(1- β^2).

source
LorentzVectorBase.cos_phiMethod
cos_phi(::XYZE, mom)

Return the cosine of the azimuthal angle for a given four-momentum.

Note

This is an equivalent but faster version of cos(azimuthal_angle(mom)); see phi.

source
LorentzVectorBase.cos_thetaMethod
cos_theta(::XYZE, mom)

Return the cosine of the theta angle for a given four-momentum.

Note

This is an equivalent but faster version of cos(polar_angle(::XYZE, mom)); see polar_angle.

source
LorentzVectorBase.massMethod
mass(::XYZE,mom)

Return the the invariant mass of a given four-momentum, i.e. the square root of the minkowski dot with itself.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to sqrt(E^2 - (px^2 + py^2 + pz^2)).

Note

If the squared invariant mass m2 is negative, -sqrt(-m2) is returned.

source
LorentzVectorBase.mass2Method
mass2(::XYZE,mom)

Return the squared invariant mass of a given four-momentum, i.e. the minkowski dot with itself.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to E^2 - (px^2 + py^2 + pz^2).

source
LorentzVectorBase.mtMethod
mt(::XYZE,mom)

Return the transverse momentum for a given four-momentum, i.e. the square root of its squared transverse mass.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to sqrt(E^2 - pz^2).

Note

The transverse components are defined w.r.t. to the 3-axis.

Note

If the squared transverse mass mt2 is negative, -sqrt(-mt2) is returned.

source
LorentzVectorBase.mt2Method
mt2(::XYZE, mom)

Return the squared transverse mass for a given four-momentum, i.e. the difference of its squared 0- and 3-component.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to E^2 - pz^2.

Note

The transverse components are defined w.r.t. to the 3-axis.

source
LorentzVectorBase.polar_angleMethod
polar_angle(::XYZE,mom)

Return the theta angle for a given four-momentum, i.e. the polar angle of its spatial components in spherical coordinates.

Example

If (px,py,pz,E) is a four-momentum with spatial_magnitude rho, this is equivalent to arccos(pz/rho), which is also equivalent to arctan(sqrt(px^2+py^2)/pz).

Note

The spherical coordinates are defined w.r.t. to the 3-axis.

source
LorentzVectorBase.ptMethod
pt(::XYZE, mom)

Return the transverse momentum for a given four-momentum, i.e. the spatial_magnitude of its transverse components.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to sqrt(px^2 + py^2).

Note

The transverse components are defined w.r.t. to the 3-axis.

source
LorentzVectorBase.pt2Method
pt2(::XYZE,mom)

Return the squared transverse momentum for a given four-momentum, i.e. the sum of its squared 1- and 2-component.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to px^2 + py^2.

Note

The transverse components are defined w.r.t. to the 3-axis.

source
LorentzVectorBase.rapidityMethod
rapidity(::XYZE, mom)

Return the rapidity for a given four-momentum.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to 0.5*log((E+pz)/(E-pz)).

Note

The transverse components are defined w.r.t. to the 3-axis.

source
LorentzVectorBase.sin_phiMethod
sin_phi(::XYZE,mom)

Return the sine of the azimuthal angle for a given four-momentum.

Note

This is an equivalent but faster version of sin(azimuthal_angle(mom)); see phi.

source
LorentzVectorBase.spatial_magnitudeMethod
spatial_magnitude(::XYZE,mom)

Return the spatial_magnitude of a given four-momentum, i.e. the euklidian norm spatial components.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to sqrt(px^2 + py^2 + pz^2).

Warning

This function differs from a similar function for the TLorentzVector used in the famous ROOT library.

source
LorentzVectorBase.spatial_magnitude2Method
spatial_magnitude2(::XYZE, mom)

Return the square of the spatial_magnitude of a given four-momentum, i.e. the sum of the squared spatial components.

Example

If (px,py,pz,E) is a four-momentum, this is equivalent to px^2+ py^2 + pz^2.

Warning

This function differs from a similar function for the TLorentzVector used in the famous ROOT library.

source