Public Member Functions | Public Attributes | List of all members
caf::SRLorentzVector Class Reference

#include <SRLorentzVector.h>

Public Member Functions

 SRLorentzVector ()
 
virtual ~SRLorentzVector ()=default
 
 SRLorentzVector (const TLorentzVector &v)
 
 operator TLorentzVector () const
 Recommend users convert back to TLorentzVector for boosts etc. More...
 
float T () const
 
float X () const
 
float Y () const
 
float Z () const
 
float Mag () const
 
float Beta () const
 
float Gamma () const
 
TVector3 Vect () const
 

Public Attributes

float E
 
float px
 
float py
 
float pz
 

Detailed Description

Definition at line 27 of file SRLorentzVector.h.

Constructor & Destructor Documentation

caf::SRLorentzVector::SRLorentzVector ( )

Definition at line 12 of file SRLorentzVector.cxx.

12  :
13  E (std::numeric_limits<float>::signaling_NaN()),
14  px(std::numeric_limits<float>::signaling_NaN()),
15  py(std::numeric_limits<float>::signaling_NaN()),
16  pz(std::numeric_limits<float>::signaling_NaN())
17  {}
virtual caf::SRLorentzVector::~SRLorentzVector ( )
virtualdefault
caf::SRLorentzVector::SRLorentzVector ( const TLorentzVector &  v)

Definition at line 19 of file SRLorentzVector.cxx.

20  : E(v.E()), px(v.X()), py(v.Y()), pz(v.Z())
21  {
22  }

Member Function Documentation

float caf::SRLorentzVector::Beta ( ) const
inline

Definition at line 47 of file SRLorentzVector.h.

47 {return Mag()/E;}
float Mag() const
float caf::SRLorentzVector::Gamma ( ) const
inline

Definition at line 48 of file SRLorentzVector.h.

48 {return 1.0/sqrt(1-Beta()*Beta());}
float Beta() const
float caf::SRLorentzVector::Mag ( ) const
inline

Definition at line 46 of file SRLorentzVector.h.

caf::SRLorentzVector::operator TLorentzVector ( ) const

Recommend users convert back to TLorentzVector for boosts etc.

Definition at line 24 of file SRLorentzVector.cxx.

25  {
26  return TLorentzVector(px, py, pz, E);
27  }
float caf::SRLorentzVector::T ( ) const
inline

Definition at line 42 of file SRLorentzVector.h.

42 {return E;}
TVector3 caf::SRLorentzVector::Vect ( ) const
inline

Definition at line 50 of file SRLorentzVector.h.

50 {return TVector3(px, py, pz);}
float caf::SRLorentzVector::X ( ) const
inline

Definition at line 43 of file SRLorentzVector.h.

43 {return px;}
float caf::SRLorentzVector::Y ( ) const
inline

Definition at line 44 of file SRLorentzVector.h.

44 {return py;}
float caf::SRLorentzVector::Z ( ) const
inline

Definition at line 45 of file SRLorentzVector.h.

45 {return pz;}

Member Data Documentation

float caf::SRLorentzVector::E

Definition at line 53 of file SRLorentzVector.h.

float caf::SRLorentzVector::px

Definition at line 54 of file SRLorentzVector.h.

float caf::SRLorentzVector::py

Definition at line 55 of file SRLorentzVector.h.

float caf::SRLorentzVector::pz

Definition at line 56 of file SRLorentzVector.h.


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