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

#include <TLorentzVectorC.h>

Inheritance diagram for TLorentzVectorC:
polVector

Public Member Functions

const TLorentzVector & v (int i) const
 
 TLorentzVectorC ()
 
 TLorentzVectorC (const TLorentzVector &re, const TLorentzVector &im)
 
 TLorentzVectorC (const TLorentzVector &re)
 
 TLorentzVectorC (const TLorentzVectorC &other, bool conj=false)
 
const TLorentzVector & Re () const
 
const TLorentzVector & Im () const
 
TLorentzVector & Re ()
 
TLorentzVector & Im ()
 
void conj ()
 
complex< double > Dot (const TLorentzVectorC &rhs)
 
complex< double > Dot (const TLorentzVector &rhs)
 
TLorentzVectorCoperator= (const TLorentzVectorC &other)
 
TLorentzVectorC operator+ (const TLorentzVectorC &other) const
 
TLorentzVectorC operator * (Double_t a) const
 
Bool_t operator== (const TLorentzVectorC &other) const
 
void Print ()
 

Protected Member Functions

bool makeZero ()
 

Protected Attributes

TLorentzVector _v [2]
 

Detailed Description

Definition at line 13 of file TLorentzVectorC.h.

Constructor & Destructor Documentation

◆ TLorentzVectorC() [1/4]

TLorentzVectorC::TLorentzVectorC ( )
inline

Definition at line 25 of file TLorentzVectorC.h.

25 {};

◆ TLorentzVectorC() [2/4]

TLorentzVectorC::TLorentzVectorC ( const TLorentzVector &  re,
const TLorentzVector &  im 
)
inline

Definition at line 26 of file TLorentzVectorC.h.

26  {
27  _v[0] = re;
28  _v[1] = im;
29  }
TLorentzVector _v[2]

◆ TLorentzVectorC() [3/4]

TLorentzVectorC::TLorentzVectorC ( const TLorentzVector &  re)
inline

Definition at line 31 of file TLorentzVectorC.h.

31  {
32  _v[0] = re;
33  _v[1].SetXYZT(0.,0.,0.,0.);
34  }
TLorentzVector _v[2]

◆ TLorentzVectorC() [4/4]

TLorentzVectorC::TLorentzVectorC ( const TLorentzVectorC other,
bool  conj = false 
)
inline

Definition at line 36 of file TLorentzVectorC.h.

36  {
37  _v[0] = other._v[0];
38  _v[1] = other._v[1];
39  if (conj==true) {
40  _v[1]*=-1.;
41  }
42  }
TLorentzVector _v[2]

Member Function Documentation

◆ conj()

void TLorentzVectorC::conj ( )
inline

Definition at line 49 of file TLorentzVectorC.h.

49  {
50  _v[1]=-_v[1];
51  }
TLorentzVector _v[2]

◆ Dot() [1/2]

complex<double> TLorentzVectorC::Dot ( const TLorentzVectorC rhs)
inline

Definition at line 53 of file TLorentzVectorC.h.

53  {
54  return complex<double>(_v[0].Dot(rhs._v[0]) - _v[1].Dot(rhs._v[1]),_v[0].Dot(rhs._v[1]) + _v[1].Dot(rhs._v[0]));
55  }
TLorentzVector _v[2]
complex< double > Dot(const TLorentzVectorC &rhs)

◆ Dot() [2/2]

complex<double> TLorentzVectorC::Dot ( const TLorentzVector &  rhs)
inline

Definition at line 57 of file TLorentzVectorC.h.

57  {
59  return Dot(other);
60  }
complex< double > Dot(const TLorentzVectorC &rhs)

◆ Im() [1/2]

const TLorentzVector& TLorentzVectorC::Im ( ) const
inline

Definition at line 44 of file TLorentzVectorC.h.

44 {return _v[1];}
TLorentzVector _v[2]

◆ Im() [2/2]

TLorentzVector& TLorentzVectorC::Im ( )
inline

Definition at line 47 of file TLorentzVectorC.h.

47 {return _v[1];}
TLorentzVector _v[2]

◆ makeZero()

bool TLorentzVectorC::makeZero ( )
inlineprotected

Definition at line 17 of file TLorentzVectorC.h.

17  {
18  Re().SetXYZT(0,0,0,0);
19  Im().SetXYZT(0,0,0,0);
20  return true;
21  }
const TLorentzVector & Re() const
const TLorentzVector & Im() const

◆ operator *()

TLorentzVectorC TLorentzVectorC::operator * ( Double_t  a) const
inline

Definition at line 72 of file TLorentzVectorC.h.

72  {
73  return TLorentzVectorC(a*_v[0], a*_v[1]);
74  }
TLorentzVector _v[2]

◆ operator+()

TLorentzVectorC TLorentzVectorC::operator+ ( const TLorentzVectorC other) const
inline

Definition at line 68 of file TLorentzVectorC.h.

68  {
69  return TLorentzVectorC(_v[0] + other._v[0], _v[1] + other._v[1]);
70  }
TLorentzVector _v[2]

◆ operator=()

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

Definition at line 62 of file TLorentzVectorC.h.

62  {
63  _v[0] = other._v[0];
64  _v[1] = other._v[1];
65  return *this;
66  }
TLorentzVector _v[2]

◆ operator==()

Bool_t TLorentzVectorC::operator== ( const TLorentzVectorC other) const
inline

Definition at line 76 of file TLorentzVectorC.h.

76  {
77  return (_v[0] == other._v[0] && _v[1] == other._v[1]);
78  }
TLorentzVector _v[2]

◆ Print()

void TLorentzVectorC::Print ( )
inline

Definition at line 80 of file TLorentzVectorC.h.

80  {
81  cout << "Re = " ; _v[0].Print();
82  cout << "Im = " ; _v[1].Print();
83  }
TLorentzVector _v[2]

◆ Re() [1/2]

const TLorentzVector& TLorentzVectorC::Re ( ) const
inline

Definition at line 43 of file TLorentzVectorC.h.

43 {return _v[0];}
TLorentzVector _v[2]

◆ Re() [2/2]

TLorentzVector& TLorentzVectorC::Re ( )
inline

Definition at line 46 of file TLorentzVectorC.h.

46 {return _v[0];}
TLorentzVector _v[2]

◆ v()

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

Definition at line 23 of file TLorentzVectorC.h.

23 {return _v[i];}
TLorentzVector _v[2]

Member Data Documentation

◆ _v

TLorentzVector TLorentzVectorC::_v[2]
protected

Definition at line 15 of file TLorentzVectorC.h.


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