1 #ifndef LORENTZ_MATRIX_HH 2 #define LORENTZ_MATRIX_HH 5 #include "TLorentzVector.h" 19 const TLorentzVector&
v(
int i)
const{
return _v[i];}
23 for(
int i=0; i<4; i++)
_v[i] = p[i];
26 for(
int i=0; i<4; i++)
_v[i] = other.
_v[i];
28 const TLorentzVector&
X()
const{
return _v[0];}
29 const TLorentzVector&
Y()
const{
return _v[1];}
30 const TLorentzVector&
Z()
const{
return _v[2];}
31 const TLorentzVector&
T()
const{
return _v[3];}
33 TLorentzVector&
X() {
return _v[0];}
34 TLorentzVector&
Y() {
return _v[1];}
35 TLorentzVector&
Z() {
return _v[2];}
36 TLorentzVector&
T() {
return _v[3];}
42 for(
int i=0; i < 4; i++)
_v[i] += other.
_v[i];
46 for(
int i=0; i < 4; i++)
_v[i] -= other.
_v[i];
50 for(
int i=0; i < 4; i++)
_v[i] *=
s;
54 for(
int i=0; i < 4; i++)
_v[i] *= (1./
s);
71 for(
int i=0; i<4; i++)
_v[i] = other.
_v[i];
LorentzMatrix operator/(double rhs) const
LorentzMatrix & operator-=(const LorentzMatrix &rhs)
const TLorentzVector & T() const
LorentzMatrix operator *(double rhs) const
LorentzMatrix(const LorentzMatrix &other)
const TLorentzVector & X() const
LorentzMatrix & operator=(const LorentzMatrix &other)
const TLorentzVector & Y() const
LorentzMatrix & operator *=(double rhs)
LorentzMatrix & operator/=(double rhs)
LorentzMatrix operator+(const LorentzMatrix &rhs) const
LorentzMatrix & subtract(const LorentzMatrix &other)
LorentzMatrix & div(double s)
LorentzMatrix & add(const LorentzMatrix &other)
const TLorentzVector & v(int i) const
const TLorentzVector & operator[](int i) const
LorentzMatrix operator-(const LorentzMatrix &rhs) const
LorentzMatrix(const TLorentzVector p[4])
LorentzMatrix & operator+=(const LorentzMatrix &rhs)
const TLorentzVector & Z() const
LorentzMatrix & mult(double s)
TLorentzVector & operator[](int i)