boca::LorentzVector< Momentum > Class Template Reference

Momentum Lorentz vector. More...

#include <LorentzVector.hh>

Inheritance diagram for boca::LorentzVector< Momentum >:
[legend]
Collaboration diagram for boca::LorentzVector< Momentum >:
[legend]

Public Member Functions

Constructor
 LorentzVector ()
 Default constructor. More...
 
 LorentzVector (TLorentzVector const &lorentzvector)
 Constructor accepting root::TLorentzVector. More...
 
 LorentzVector (exroot::Electron const &electron)
 Constructor accepting exroot::Electron. More...
 
 LorentzVector (exroot::GenJet const &jet)
 Constructor accepting exroot::GenJet. More...
 
 LorentzVector (exroot::GenParticle const &particle)
 Constructor accepting exroot::GenParticle. More...
 
 LorentzVector (exroot::Jet const &jet)
 Constructor accepting exroot::Jet. More...
 
 LorentzVector (exroot::LHEFParticle const &particle)
 Constructor accepting exroot::LHEFParticle. More...
 
 LorentzVector (exroot::Muon const &muon)
 Constructor accepting exroot::Muon. More...
 
 LorentzVector (exroot::Photon const &photon)
 Constructor accepting exroot::Photon. More...
 
 LorentzVector (exroot::Tau const &tau)
 Constructor accepting exroot::Tau. More...
 
Setter
void SetVectE (Vector3< Momentum > const &vector, const boca::Energy &energy)
 Setter for px py pz e. More...
 
void SetVectM (Vector3< Momentum > const &spatial, boca::Mass const &mass)
 Set spatial vector and magnitude. More...
 
void SetPtEtaPhiM (Momentum const &pt, boca::Angle const &eta, boca::Angle const &phi, boca::Mass const &mass)
 Setter for pt eta phi m. More...
 
void SetPtEtaPhiE (Momentum const &pt, boca::Angle const &eta, boca::Angle const &phi, boca::Energy const &energy)
 Setter for pt eta phi e. More...
 
template<typename Particle >
void LorentzVectorByEnergy (const Particle &particle)
 Setter for a exroot Particle. More...
 
template<typename Particle >
void LorentzVectorByMass (const Particle &particle, boca::Mass const &mass)
 Setter for a exroot Particle and a mass. More...
 
template<typename Particle >
void LorentzVectorByMass (const Particle &particle)
 Setter for a exroot Particle. More...
 
template<typename Particle >
void LorentzVectorByM (const Particle &particle)
 Setter for a exroot Particle. More...
 
Accessor and Getter
Momentum Px () const
 Px. More...
 
Momentum Py () const
 Py. More...
 
Momentum Pz () const
 Pz. More...
 
boca::Energy E () const
 Energy. More...
 
boca::Energy Energy () const
 Energy. More...
 
MomentumPx ()
 Px. More...
 
MomentumPy ()
 Py. More...
 
MomentumPz ()
 Pz. More...
 
boca::EnergyE ()
 Energy. More...
 
boca::EnergyEnergy ()
 Energy. More...
 
Energy related variables
Momentum P () const
 Momentum. More...
 
EnergySquare Et2 () const
 Transverse energy squared. More...
 
boca::Energy Et () const
 Transverse energy. More...
 
template<typename Value , typename = OnlyIfNotQuantity<Value>>
EnergySquare Et2 (Vector3< Value > const &vector) const
 Transverse energy w.r.t. given axis squared. More...
 
template<typename Value , typename = OnlyIfNotQuantity<Value>>
boca::Energy Et (Vector3< Value > const &vector) const
 Transverse energy w.r.t. given axis. More...
 
MassSquare M2 () const
 Mass square. More...
 
boca::Mass M () const
 Mass. More...
 
boca::Mass Mass () const
 Mass. More...
 
MassSquare Mt2 () const
 Transverse mass squared. More...
 
boca::Mass Mt () const
 Transverse mass. More...
 
Momentum Pt () const
 Transverse component of the spatial vector(R in cylindrical system). More...
 
template<typename Value , typename = OnlyIfNotQuantity<Value>>
Momentum Pt (Vector3< Value > const &vector) const
 Transverse component of the spatial vector w.r.t. given axis. More...
 
- Public Member Functions inherited from boca::LorentzVectorBase< Momentum >
boca::Angle Rapidity (Vector3< double > const &vector) const
 Rapidity with respect to another vector. More...
 
boca::Angle DeltaRapTo (LorentzVectorBase< Value_2_ > const &vector) const
 Difference in Rapidity to a vector \(\Delta y\). More...
 
boca::Angle DeltaRTo (LorentzVectorBase< Value_2_ > const &vector) const
 Difference in agular space to a vector \(\Delta R = \sqrt{ (\Delta y)^2 + (\Delta \phi)^2}\) to vector. More...
 
constexpr LorentzVectorBase ()
 Default constructor. More...
 
constexpr LorentzVectorBase (Momentumx, Momentumy, Momentumz, Momentumt)
 Constructor accepting the components x, y, z, t. More...
 
constexpr LorentzVectorBase (Vector3< Momentum > const &vector3, Momentumconst &t)
 Constructor accepting a 3-Vector and a scalar component. More...
 
constexpr LorentzVectorBase (LorentzVectorBase< Value_2 > const &lorentz_vector)
 Copy constructor with casting. More...
 
void SetVectT (Vector3< Momentum > const &spatial, Momentumt)
 Set components. More...
 
void SetRho (Momentumrho)
 Set spatial magnitude. More...
 
void SetMag (Momentummagnitude)
 Set Nergy according to spatial component and magnitude \(e = \sqrt{ m^2 + \rho^2}\). More...
 
void SetVectMag (Vector3< Momentum > const &spatial, Momentummagnitude)
 Copy spatial coordinates, and set \(e = \sqrt{ m^2 + \rho^2}\). More...
 
void SetPerpEtaPhiMag (Momentumconst &perp, boca::Angle const &eta, boca::Angle const &phi, Momentumconst &mag)
 Set perp, \(\eta\), \(\phi\) and magnitude. More...
 
void SetPerpEtaPhiT (Momentumconst &perp, boca::Angle const &eta, boca::Angle const &phi, Momentumconst &t)
 Set perp, \(\eta\), \(\phi\) and time. More...
 
constexpr Vector3< Momentum > const & Spatial () const
 Getter for the spatial components. More...
 
Vector3< Momentum > & Spatial ()
 Accessor for the spatial components. More...
 
MomentumScalar ()
 Accessor for the scalar. More...
 
MomentumT ()
 Getter for the spatial components. More...
 
constexpr Momentumconst & Scalar () const
 Getter for the scalar component. More...
 
constexpr Momentumconst & T () const
 Getter for the scalar component. More...
 
boca::Angle Rapidity () const
 Rapidity \(y = \frac{1}{2} \ln\frac{t + z}{t - z}\). More...
 
boca::Angle Rap () const
 Rapidity \(y = \frac{1}{2} \ln\frac{t + z}{t - z}\). More...
 
constexpr ValueSquare Rho2 () const
 Square of the spatial radius \(\rho^2 = x^2 + y^2\). More...
 
constexpr Momentum Rho () const
 spatial radius \(\rho = \sqrt{x^2 + y^2 + z^2}\) More...
 
constexpr ValueSquare Mag2 () const
 Square of the magnitude \(m^2 = t^2 - \rho^2\). More...
 
constexpr Momentum Mag () const
 Magnitude \(m = \sqrt{t^2 - \rho^2}\). More...
 
constexpr ValueSquare MagT2 () const
 Square of the transvere magnitude \(m_T^2 = m^2 + x^2 + y^2\). More...
 
constexpr Momentum MagT () const
 Transvere magnitude \(m_T = \sqrt{m^2 + x^2 + y^2}\). More...
 
constexpr ValueSquare ScalarT2 () const
 transvere scalar square \(e_T^2 = e^2 \frac{p_T^2}{\rho^2}\) More...
 
constexpr ValueSquare ScalarT2 (Vector3< Value > const &vector) const
 Transverse scalar squared towards a vector. More...
 
constexpr Momentum ScalarT () const
 transvere scalar square \(e_T = e \frac{p_T}{\rho}\) More...
 
constexpr Momentum ScalarT (Vector3< Value > const &vector) const
 Transverse scalar towards a vector. More...
 
constexpr double Beta () const
 Relative velocity \(\beta = \frac{\rho}{t}\). More...
 
constexpr double Gamma () const
 Lorentz factor \(\gamma = \frac{1}{\sqrt{1-\beta^2}}\). More...
 
constexpr Momentum Plus () const
 Positive light cone component \(p = t + z\). More...
 
constexpr Momentum Minus () const
 Negative light cone component \(m = t - z\). More...
 
constexpr Vector3< double > BoostVector () const
 Spatial components divided by the time component. More...
 
constexpr Vector3< double > BoostIntoRestFrame () const
 
constexpr LorentzVectorBase< MomentumBoosted (Vector3< double > const &boost) const
 Boosted Lorentz vector. More...
 
LorentzVectorBase< Momentum > & Boost (Vector3< double > const &boost)
 Boost this Lorentz vector. More...
 
constexpr LorentzVectorBase< ValueProduct< Value_2 > > Scale (Value_2 const &scalar) const
 Scale. More...
 
constexpr ValueProduct< Value_2 > Dot (LorentzVectorBase< Value_2 > const &lorentz_vector) const
 Scalar dot product with a lorentz vector. More...
 
constexpr ValueProduct< Value_2 > Euclidean (LorentzVectorBase< Value_2 > const &lorentz_vector) const
 Euclidean product with a lorentz vector. More...
 
constexpr ConstIterator< Vector3, Momentumbegin () const
 
Iterator< Vector3, Momentumbegin ()
 
constexpr ConstIterator< Vector3, Momentumend () const
 
Iterator< Vector3, Momentumend ()
 
constexpr bool operator< (LorentzVectorBase const &lorentz_vector) const
 Less than comparison. More...
 
constexpr bool operator== (LorentzVectorBase const &lorentz_vector) const
 Equality comparison. More...
 
LorentzVectorBaseoperator+= (LorentzVectorBase< Value_2 > const &lorentz_vector)
 Additions. More...
 
LorentzVectorBaseoperator-= (LorentzVectorBase< Value_2 > const &lorentz_vector)
 Subtractions. More...
 
LorentzVectorBaseoperator*= (Value_2 scalar)
 Product with scalar. More...
 
LorentzVectorBaseoperator/= (Value_2 scalar)
 Divison by scalar. More...
 
constexpr LorentzVectorBase< ValueQuotient< Value_2 > > operator/ (Value_2 const &scalar) const
 Divison by scalar. More...
 
constexpr LorentzVectorBase operator- () const
 Unary minus. More...
 
Momentumconst & operator[] (LorentzDim lorentz_dim) const
 components by index. More...
 
Momentumoperator[] (LorentzDim lorentz_dim)
 components by index. More...
 

Additional Inherited Members

- Public Types inherited from boca::LorentzVectorBase< Momentum >
using Dimension = LorentzDim
 
- Protected Types inherited from boca::LorentzVectorBase< Momentum >
using OnlyIfNotQuantity = typename std::enable_if< !IsQuantity< Value_2 >::value >::type
 
- Protected Attributes inherited from boca::LorentzVectorBase< Momentum >
Momentum scalar_
 time or energy component More...
 

Detailed Description

template<>
class boca::LorentzVector< Momentum >

Momentum Lorentz vector.

Constructor & Destructor Documentation

Default constructor.

boca::LorentzVector< Momentum >::LorentzVector ( TLorentzVector< Momentum > const &  lorentzvector)

Constructor accepting root::TLorentzVector.

Constructor accepting exroot::Electron.

Constructor accepting exroot::GenJet.

Constructor accepting exroot::GenParticle.

Constructor accepting exroot::Jet.

Constructor accepting exroot::LHEFParticle.

Constructor accepting exroot::Muon.

Constructor accepting exroot::Photon.

Constructor accepting exroot::Tau.

Member Function Documentation

Energy.

Energy.

Energy.

Transverse energy.

template<typename Value , typename = OnlyIfNotQuantity<Value>>
boca::Energy boca::LorentzVector< Momentum >::Et ( Vector3< Value > const &  vector) const
inline

Transverse energy w.r.t. given axis.

Transverse energy squared.

template<typename Value , typename = OnlyIfNotQuantity<Value>>
EnergySquare boca::LorentzVector< Momentum >::Et2 ( Vector3< Value > const &  vector) const
inline

Transverse energy w.r.t. given axis squared.

template<typename Particle >
void boca::LorentzVector< Momentum >::LorentzVectorByEnergy ( const Particle particle)
inline

Setter for a exroot Particle.

template<typename Particle >
void boca::LorentzVector< Momentum >::LorentzVectorByM ( const Particle particle)
inline

Setter for a exroot Particle.

template<typename Particle >
void boca::LorentzVector< Momentum >::LorentzVectorByMass ( const Particle particle,
boca::Mass const &  mass 
)
inline

Setter for a exroot Particle and a mass.

template<typename Particle >
void boca::LorentzVector< Momentum >::LorentzVectorByMass ( const Particle particle)
inline

Setter for a exroot Particle.

Mass.

Mass square.

Mass.

Mass boca::LorentzVector< Momentum >::Mt ( ) const

Transverse mass.

Transverse mass squared.

Momentum.

Transverse component of the spatial vector(R in cylindrical system).

template<typename Value , typename = OnlyIfNotQuantity<Value>>
Momentum boca::LorentzVector< Momentum >::Pt ( Vector3< Value > const &  vector) const
inline

Transverse component of the spatial vector w.r.t. given axis.

Px.

Py.

Pz.

void boca::LorentzVector< Momentum >::SetPtEtaPhiE ( boca::Momentum const &  pt,
boca::Angle const &  eta,
boca::Angle const &  phi,
boca::Energy const &  energy 
)

Setter for pt eta phi e.

void boca::LorentzVector< Momentum >::SetPtEtaPhiM ( boca::Momentum const &  pt,
boca::Angle const &  eta,
boca::Angle const &  phi,
boca::Mass const &  mass 
)

Setter for pt eta phi m.

void boca::LorentzVector< Momentum >::SetVectE ( Vector3< Momentum > const &  vector,
const boca::Energy energy 
)

Setter for px py pz e.

void boca::LorentzVector< Momentum >::SetVectM ( Vector3< Momentum > const &  spatial,
boca::Mass const &  mass 
)

Set spatial vector and magnitude.


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