1 #ifndef TLORENTZ_VECTOR_COMPLEX_HH 2 #define TLORENTZ_VECTOR_COMPLEX_HH 6 #include "TLorentzVector.h" 18 Re().SetXYZT(0,0,0,0);
19 Im().SetXYZT(0,0,0,0);
23 const TLorentzVector&
v(
int i)
const{
return _v[i];}
33 _v[1].SetXYZT(0.,0.,0.,0.);
43 const TLorentzVector&
Re()
const{
return _v[0];}
44 const TLorentzVector&
Im()
const{
return _v[1];}
46 TLorentzVector&
Re() {
return _v[0];}
47 TLorentzVector&
Im() {
return _v[1];}
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]));
57 complex<double>
Dot(
const TLorentzVector& rhs){
77 return (_v[0] == other.
_v[0] && _v[1] == other.
_v[1]);
81 cout <<
"Re = " ; _v[0].Print();
82 cout <<
"Im = " ; _v[1].Print();
TLorentzVectorC(const TLorentzVector &re)
complex< double > Dot(const TLorentzVector &rhs)
const TLorentzVector & Re() const
TLorentzVectorC(const TLorentzVector &re, const TLorentzVector &im)
complex< double > Dot(const TLorentzVectorC &rhs)
std::complex< double > operator+(const std::complex< double > &cplx, const MINT::FitComplex &fc)
const TLorentzVector & Im() const
DalitzHistoSet operator *(double sf, const DalitzHistoSet &dhs)
const TLorentzVector & v(int i) const
TLorentzVectorC(const TLorentzVectorC &other, bool conj=false)