MINT2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LorentzMatrix Class Reference

#include <LorentzMatrix.h>

Inheritance diagram for LorentzMatrix:
SymmLorentzMatrix ZTgperp ZTspin2

Public Member Functions

const TLorentzVector & v (int i) const
 
 LorentzMatrix ()
 
 LorentzMatrix (const TLorentzVector p[4])
 
 LorentzMatrix (const LorentzMatrix &other)
 
const TLorentzVector & X () const
 
const TLorentzVector & Y () const
 
const TLorentzVector & Z () const
 
const TLorentzVector & T () const
 
TLorentzVector & X ()
 
TLorentzVector & Y ()
 
TLorentzVector & Z ()
 
TLorentzVector & T ()
 
const TLorentzVector & operator[] (int i) const
 
TLorentzVector & operator[] (int i)
 
LorentzMatrixadd (const LorentzMatrix &other)
 
LorentzMatrixsubtract (const LorentzMatrix &other)
 
LorentzMatrixmult (double s)
 
LorentzMatrixdiv (double s)
 
LorentzMatrixoperator+= (const LorentzMatrix &rhs)
 
LorentzMatrixoperator *= (double rhs)
 
LorentzMatrixoperator-= (const LorentzMatrix &rhs)
 
LorentzMatrixoperator/= (double rhs)
 
LorentzMatrixoperator= (const LorentzMatrix &other)
 
LorentzMatrix operator+ (const LorentzMatrix &rhs) const
 
LorentzMatrix operator- (const LorentzMatrix &rhs) const
 
LorentzMatrix operator * (double rhs) const
 
LorentzMatrix operator/ (double rhs) const
 

Protected Member Functions

bool makeZero ()
 

Protected Attributes

TLorentzVector _v [4]
 

Detailed Description

Definition at line 7 of file LorentzMatrix.h.

Constructor & Destructor Documentation

◆ LorentzMatrix() [1/3]

LorentzMatrix::LorentzMatrix ( )
inline

Definition at line 21 of file LorentzMatrix.h.

21 {};

◆ LorentzMatrix() [2/3]

LorentzMatrix::LorentzMatrix ( const TLorentzVector  p[4])
inline

Definition at line 22 of file LorentzMatrix.h.

22  {
23  for(int i=0; i<4; i++) _v[i] = p[i];
24  }
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ LorentzMatrix() [3/3]

LorentzMatrix::LorentzMatrix ( const LorentzMatrix other)
inline

Definition at line 25 of file LorentzMatrix.h.

25  {
26  for(int i=0; i<4; i++) _v[i] = other._v[i];
27  }
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

Member Function Documentation

◆ add()

LorentzMatrix& LorentzMatrix::add ( const LorentzMatrix other)
inline

Definition at line 41 of file LorentzMatrix.h.

41  {
42  for(int i=0; i < 4; i++) _v[i] += other._v[i];
43  return *this;
44  }
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ div()

LorentzMatrix& LorentzMatrix::div ( double  s)
inline

Definition at line 53 of file LorentzMatrix.h.

53  {
54  for(int i=0; i < 4; i++) _v[i] *= (1./s);
55  return *this;
56  }
static const double s
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ makeZero()

bool LorentzMatrix::makeZero ( )
inlineprotected

Definition at line 11 of file LorentzMatrix.h.

11  {
12  X().SetXYZT(0,0,0,0);
13  Y().SetXYZT(0,0,0,0);
14  Z().SetXYZT(0,0,0,0);
15  T().SetXYZT(0,0,0,0);
16  return true;
17  }
const TLorentzVector & T() const
Definition: LorentzMatrix.h:31
const TLorentzVector & X() const
Definition: LorentzMatrix.h:28
const TLorentzVector & Y() const
Definition: LorentzMatrix.h:29
const TLorentzVector & Z() const
Definition: LorentzMatrix.h:30

◆ mult()

LorentzMatrix& LorentzMatrix::mult ( double  s)
inline

Definition at line 49 of file LorentzMatrix.h.

49  {
50  for(int i=0; i < 4; i++) _v[i] *= s;
51  return *this;
52  }
static const double s
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ operator *()

LorentzMatrix LorentzMatrix::operator * ( double  rhs) const
inline

Definition at line 84 of file LorentzMatrix.h.

84  {
85  LorentzMatrix returnVal(*this);
86  returnVal *= rhs;
87  return returnVal;
88  }

◆ operator *=()

LorentzMatrix& LorentzMatrix::operator *= ( double  rhs)
inline

Definition at line 61 of file LorentzMatrix.h.

61  {
62  return mult(rhs);
63  }
LorentzMatrix & mult(double s)
Definition: LorentzMatrix.h:49

◆ operator+()

LorentzMatrix LorentzMatrix::operator+ ( const LorentzMatrix rhs) const
inline

Definition at line 74 of file LorentzMatrix.h.

74  {
75  LorentzMatrix returnVal(*this);
76  returnVal += rhs;
77  return returnVal;
78  }

◆ operator+=()

LorentzMatrix& LorentzMatrix::operator+= ( const LorentzMatrix rhs)
inline

Definition at line 58 of file LorentzMatrix.h.

58  {
59  return add(rhs);
60  }
LorentzMatrix & add(const LorentzMatrix &other)
Definition: LorentzMatrix.h:41

◆ operator-()

LorentzMatrix LorentzMatrix::operator- ( const LorentzMatrix rhs) const
inline

Definition at line 79 of file LorentzMatrix.h.

79  {
80  LorentzMatrix returnVal(*this);
81  returnVal -= rhs;
82  return returnVal;
83  }

◆ operator-=()

LorentzMatrix& LorentzMatrix::operator-= ( const LorentzMatrix rhs)
inline

Definition at line 64 of file LorentzMatrix.h.

64  {
65  return subtract(rhs);
66  }
LorentzMatrix & subtract(const LorentzMatrix &other)
Definition: LorentzMatrix.h:45

◆ operator/()

LorentzMatrix LorentzMatrix::operator/ ( double  rhs) const
inline

Definition at line 89 of file LorentzMatrix.h.

89  {
90  LorentzMatrix returnVal(*this);
91  returnVal /= rhs;
92  return returnVal;
93  }

◆ operator/=()

LorentzMatrix& LorentzMatrix::operator/= ( double  rhs)
inline

Definition at line 67 of file LorentzMatrix.h.

67  {
68  return div(rhs);
69  }
LorentzMatrix & div(double s)
Definition: LorentzMatrix.h:53

◆ operator=()

LorentzMatrix& LorentzMatrix::operator= ( const LorentzMatrix other)
inline

Definition at line 70 of file LorentzMatrix.h.

70  {
71  for(int i=0; i<4; i++) _v[i] = other._v[i];
72  return *this;
73  }
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ operator[]() [1/2]

const TLorentzVector& LorentzMatrix::operator[] ( int  i) const
inline

Definition at line 38 of file LorentzMatrix.h.

38 {return _v[i];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ operator[]() [2/2]

TLorentzVector& LorentzMatrix::operator[] ( int  i)
inline

Definition at line 39 of file LorentzMatrix.h.

39 {return _v[i];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ subtract()

LorentzMatrix& LorentzMatrix::subtract ( const LorentzMatrix other)
inline

Definition at line 45 of file LorentzMatrix.h.

45  {
46  for(int i=0; i < 4; i++) _v[i] -= other._v[i];
47  return *this;
48  }
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ T() [1/2]

const TLorentzVector& LorentzMatrix::T ( ) const
inline

Definition at line 31 of file LorentzMatrix.h.

31 {return _v[3];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ T() [2/2]

TLorentzVector& LorentzMatrix::T ( )
inline

Definition at line 36 of file LorentzMatrix.h.

36 {return _v[3];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ v()

const TLorentzVector& LorentzMatrix::v ( int  i) const
inline

Definition at line 19 of file LorentzMatrix.h.

19 {return _v[i];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ X() [1/2]

const TLorentzVector& LorentzMatrix::X ( ) const
inline

Definition at line 28 of file LorentzMatrix.h.

28 {return _v[0];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ X() [2/2]

TLorentzVector& LorentzMatrix::X ( )
inline

Definition at line 33 of file LorentzMatrix.h.

33 {return _v[0];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ Y() [1/2]

const TLorentzVector& LorentzMatrix::Y ( ) const
inline

Definition at line 29 of file LorentzMatrix.h.

29 {return _v[1];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ Y() [2/2]

TLorentzVector& LorentzMatrix::Y ( )
inline

Definition at line 34 of file LorentzMatrix.h.

34 {return _v[1];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ Z() [1/2]

const TLorentzVector& LorentzMatrix::Z ( ) const
inline

Definition at line 30 of file LorentzMatrix.h.

30 {return _v[2];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

◆ Z() [2/2]

TLorentzVector& LorentzMatrix::Z ( )
inline

Definition at line 35 of file LorentzMatrix.h.

35 {return _v[2];}
TLorentzVector _v[4]
Definition: LorentzMatrix.h:9

Member Data Documentation

◆ _v

TLorentzVector LorentzMatrix::_v[4]
protected

Definition at line 9 of file LorentzMatrix.h.


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