Rivet  1.8.0
Classes | Public Member Functions | Friends
Rivet::FourMomentum Class Reference

Specialized version of the FourVector with momentum/energy functionality. More...

#include <Vector4.hh>

Inheritance diagram for Rivet::FourMomentum:
Rivet::FourVector Rivet::Vector< 4 >

List of all members.

Classes

struct  byEAscending
 Struct for sorting by increasing energy. More...
struct  byEDescending
 Struct for sorting by decreasing energy. More...

Public Member Functions

template<typename V4 >
 FourMomentum (const V4 &other)
 FourMomentum (const Vector< 4 > &other)
 FourMomentum (const double E, const double px, const double py, const double pz)
double E () const
 Get energy $ E $ (time component of momentum).
Vector3 p () const
 Get 3-momentum part, $ p $.
double px () const
 Get x-component of momentum $ p_x $.
double py () const
 Get y-component of momentum $ p_y $.
double pz () const
 Get z-component of momentum $ p_z $.
FourMomentumsetE (double E)
 Set energy $ E $ (time component of momentum).
FourMomentumsetPx (double px)
 Set x-component of momentum $ p_x $.
FourMomentumsetPy (double py)
 Set y-component of momentum $ p_y $.
FourMomentumsetPz (double pz)
 Set z-component of momentum $ p_z $.
double mass () const
 Get the mass $ m = \sqrt{E^2 - p^2} $ (the Lorentz self-invariant).
double massT () const
 Calculate the transverse mass $ m_T = m \sin{\theta} $.
double mass2 () const
 Get the squared mass $ m^2 = E^2 - p^2 $ (the Lorentz self-invariant).
double massT2 () const
 Calculate the squared transverse mass $ m_T^2 = m^2 \sin^2{\theta} $.
double rapidity () const
 Calculate the rapidity.
double pT2 () const
 Calculate the squared transverse momentum $ p_T^2 $.
double pT () const
 Calculate the transverse momentum $ p_T $.
double Et2 () const
 Calculate the transverse energy $ E_T^2 = E^2 \sin^2{\theta} $.
double Et () const
 Calculate the transverse energy $ E_T = E \sin{\theta} $.
Vector3 boostVector () const
 Calculate the boost vector (in units of $ \beta $).
FourMomentumoperator*= (double a)
 Multiply by a scalar.
FourMomentumoperator/= (double a)
 Divide by a scalar.
FourMomentumoperator+= (const FourMomentum &v)
FourMomentumoperator-= (const FourMomentum &v)
FourMomentum operator- () const
 Invert the vector.

Friends

FourMomentum multiply (const double a, const FourMomentum &v)
FourMomentum multiply (const FourMomentum &v, const double a)
FourMomentum add (const FourMomentum &a, const FourMomentum &b)
FourMomentum transform (const LorentzTransform &lt, const FourMomentum &v4)

Detailed Description

Specialized version of the FourVector with momentum/energy functionality.


Member Function Documentation

Calculate the boost vector (in units of $ \beta $).

Todo:
Be careful about c=1 convention...

References E(), px(), py(), and pz().

Referenced by Rivet::boostVector(), and Rivet::DISKinematics::project().


The documentation for this class was generated from the following file: