21#include "EvtGenBase/EvtPatches.hh"
25#include "EvtGenBase/EvtComplex.hh"
26#include "EvtGenBase/EvtGammaMatrix.hh"
27#include "EvtGenBase/EvtDiracSpinor.hh"
28#include "EvtGenBase/EvtReport.hh"
29#include "EvtGenBase/EvtTensor4C.hh"
30#include "EvtGenBase/EvtVector4C.hh"
57 temp.gamma[i][j]=g.gamma[i][j]*c;
69 s<<
"["<<g.gamma[0][0]<<
","<<g.gamma[0][1]<<
","<<g.gamma[0][2]<<
","<<g.gamma[0][3]<<
"]"<<endl;
70 s<<
"["<<g.gamma[1][0]<<
","<<g.gamma[1][1]<<
","<<g.gamma[1][2]<<
","<<g.gamma[1][3]<<
"]"<<endl;
71 s<<
"["<<g.gamma[2][0]<<
","<<g.gamma[2][1]<<
","<<g.gamma[2][2]<<
","<<g.gamma[2][3]<<
"]"<<endl;
72 s<<
"["<<g.gamma[3][0]<<
","<<g.gamma[3][1]<<
","<<g.gamma[3][2]<<
","<<g.gamma[3][3]<<
"]"<<endl;
85 gamma[i][j]=gm.gamma[i][j];
97 gamma[i][j]=gm.gamma[i][j];
525 gamma[i][j]+=g.gamma[i][j];
541 gamma[i][j]-=g.gamma[i][j];
558 temp.gamma[i][j]+=gamma[i][k]*g.gamma[k][j];
565 gamma[i][j]=temp.gamma[i][j];
609 static bool hasBeenCalled =
false;
613 for (
int i=0; i<4; ++i)
623 sigma[1][0] = -1*s01;
625 sigma[2][0] = -1*s02;
627 sigma[3][0] = -1*s03;
629 sigma[2][1] = -1*s12;
631 sigma[3][1] = -1*s13;
633 sigma[3][2] = -1*s23;
635 hasBeenCalled =
true;
637 if (mu > 3 || nu > 3)
639 report(
ERROR,
"EvtSigmaTensor") <<
"Expected index between 0 and 3, but found " << nu <<
"!" << endl;
642 return sigma[mu][nu];
651 static bool hasBeenCalled =
false;
657 for (
int i=0; i<4; ++i)
660 for (
int j=0; j<4; ++j)
667 return sigma[mu][nu];
ostream & operator<<(ostream &s, const EvtGammaMatrix &g)
EvtGammaMatrix operator*(const EvtGammaMatrix &g, const EvtComplex &c)
EvtGammaMatrix slash(const EvtVector4C &p)
Evt3Rank3C conj(const Evt3Rank3C &t2)
ostream & report(Severity severity, const char *facility)
const EvtComplex & get_spinor(int i) const
void set_spinor(int i, const EvtComplex &sp)
virtual ~EvtGammaMatrix()
static const EvtGammaMatrix & sigmaLower(unsigned int mu, unsigned int nu)
static const EvtGammaMatrix & va1()
static const EvtGammaMatrix & v0()
static const EvtGammaMatrix & id()
static const EvtGammaMatrix & sigmaUpper(unsigned int mu, unsigned int nu)
static const EvtGammaMatrix & g0()
static const EvtGammaMatrix & g2()
EvtGammaMatrix & operator-=(const EvtGammaMatrix &g)
static const EvtGammaMatrix & g1()
static const EvtGammaMatrix & va3()
static const EvtGammaMatrix & g3()
static const EvtGammaMatrix & v2()
static const EvtGammaMatrix & va0()
static const EvtGammaMatrix & va2()
static const EvtGammaMatrix & g5()
static const EvtGammaMatrix & v1()
static const EvtGammaMatrix & v3()
EvtGammaMatrix & operator*=(const EvtGammaMatrix &g)
EvtGammaMatrix & operator=(const EvtGammaMatrix &gm)
EvtGammaMatrix & operator+=(const EvtGammaMatrix &g)
const EvtComplex & get(int i, int j) const
static const EvtTensor4C & g()
const EvtComplex & get(int) const