#include "EvtGenBase/EvtComplex.hh"
#include "EvtGenBase/EvtDiracSpinor.hh"
#include <iosfwd>
Go to the source code of this file.
Classes | |
class | EvtGammaMatrix |
Functions | |
EvtGammaMatrix | operator * (const EvtComplex &c, const EvtGammaMatrix &g) |
EvtGammaMatrix | operator * (const EvtGammaMatrix &g, const EvtComplex &c) |
EvtGammaMatrix | operator/ (const EvtGammaMatrix &g, const double d) |
EvtDiracSpinor | operator * (const EvtGammaMatrix &g, const EvtDiracSpinor &d) |
EvtComplex | operator * (const EvtDiracSpinor &d, const EvtDiracSpinor &dp) |
EvtGammaMatrix | operator+ (const EvtGammaMatrix &g1, const EvtGammaMatrix &g2) |
EvtGammaMatrix | operator- (const EvtGammaMatrix &g1, const EvtGammaMatrix &g2) |
EvtGammaMatrix | operator * (const EvtGammaMatrix &g1, const EvtGammaMatrix &g2) |
std::ostream & | operator<< (std::ostream &s, const EvtGammaMatrix &v) |
EvtGammaMatrix | slash (const EvtVector4C &p) |
EvtGammaMatrix operator * | ( | const EvtGammaMatrix & | g1, | |
const EvtGammaMatrix & | g2 | |||
) | [inline] |
Definition at line 100 of file EvtGammaMatrix.hh.
00100 { 00101 return EvtGammaMatrix(g1)*=g2; 00102 }
EvtComplex operator * | ( | const EvtDiracSpinor & | d, | |
const EvtDiracSpinor & | dp | |||
) |
Definition at line 589 of file EvtGammaMatrix.cc.
References conj(), EvtDiracSpinor::get_spinor(), genRecEmupikp::i, and subSeperate::temp.
00589 { 00590 00591 int i; 00592 EvtComplex temp; 00593 00594 temp=EvtComplex(0.0,0.0); 00595 00596 for(i=0;i<4;i++){ 00597 temp+=::conj(d.get_spinor(i))*dp.get_spinor(i); 00598 } 00599 return temp; 00600 }
EvtDiracSpinor operator * | ( | const EvtGammaMatrix & | g, | |
const EvtDiracSpinor & | d | |||
) |
Definition at line 573 of file EvtGammaMatrix.cc.
References EvtGammaMatrix::gamma, EvtDiracSpinor::get_spinor(), genRecEmupikp::i, ganga-rec::j, and subSeperate::temp.
00573 { 00574 00575 int i,j; 00576 EvtDiracSpinor temp; 00577 00578 for(i=0;i<4;i++){ 00579 temp.set_spinor(i,EvtComplex(0.0,0.0)); 00580 for(j=0;j<4;j++){ 00581 temp.set_spinor(i,temp.get_spinor(i)+g.gamma[i][j]*d.get_spinor(j)); 00582 } 00583 } 00584 00585 return temp; 00586 }
EvtGammaMatrix operator * | ( | const EvtGammaMatrix & | g, | |
const EvtComplex & | c | |||
) |
EvtGammaMatrix operator * | ( | const EvtComplex & | c, | |
const EvtGammaMatrix & | g | |||
) |
Definition at line 50 of file EvtGammaMatrix.cc.
References EvtGammaMatrix::gamma, genRecEmupikp::i, ganga-rec::j, and subSeperate::temp.
00050 { 00051 int i,j; 00052 00053 EvtGammaMatrix temp; 00054 00055 for(i=0;i<4;i++){ 00056 for(j=0;j<4;j++){ 00057 temp.gamma[i][j]=g.gamma[i][j]*c; 00058 } 00059 } 00060 00061 return temp; 00062 00063 }
EvtGammaMatrix operator+ | ( | const EvtGammaMatrix & | g1, | |
const EvtGammaMatrix & | g2 | |||
) | [inline] |
Definition at line 92 of file EvtGammaMatrix.hh.
00092 { 00093 return EvtGammaMatrix(g1)+=g2; 00094 }
EvtGammaMatrix operator- | ( | const EvtGammaMatrix & | g1, | |
const EvtGammaMatrix & | g2 | |||
) | [inline] |
Definition at line 96 of file EvtGammaMatrix.hh.
00096 { 00097 return EvtGammaMatrix(g1)-=g2; 00098 }
EvtGammaMatrix operator/ | ( | const EvtGammaMatrix & | g, | |
const double | d | |||
) | [inline] |
Definition at line 104 of file EvtGammaMatrix.hh.
00105 { 00106 return g * EvtComplex(1/d,0); 00107 }
std::ostream& operator<< | ( | std::ostream & | s, | |
const EvtGammaMatrix & | v | |||
) |
EvtGammaMatrix slash | ( | const EvtVector4C & | p | ) |
Definition at line 671 of file EvtGammaMatrix.cc.
References EvtGammaMatrix::g0(), EvtGammaMatrix::g1(), EvtGammaMatrix::g2(), EvtGammaMatrix::g3(), and EvtVector4C::get().
Referenced by EvtLambdaP_BarGamma::decay().
00672 { 00673 return EvtGammaMatrix::g0()*p.get(0) + EvtGammaMatrix::g1()*p.get(1) + EvtGammaMatrix::g2()*p.get(2) + EvtGammaMatrix::g3()*p.get(3); 00674 }