BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.hh File Reference
#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)
 

Function Documentation

◆ operator*() [1/5]

EvtGammaMatrix operator* ( const EvtComplex c,
const EvtGammaMatrix g 
)

Definition at line 45 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.cc.

50 {
51 int i,j;
52
53 EvtGammaMatrix temp;
54
55 for(i=0;i<4;i++){
56 for(j=0;j<4;j++){
57 temp.gamma[i][j]=g.gamma[i][j]*c;
58 }
59 }
60
61 return temp;
62
63}

◆ operator*() [2/5]

EvtComplex operator* ( const EvtDiracSpinor d,
const EvtDiracSpinor dp 
)

Definition at line 49 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.cc.

589 {
590
591 int i;
592 EvtComplex temp;
593
594 temp=EvtComplex(0.0,0.0);
595
596 for(i=0;i<4;i++){
597 temp+=::conj(d.get_spinor(i))*dp.get_spinor(i);
598 }
599 return temp;
600}
Evt3Rank3C conj(const Evt3Rank3C &t2)

◆ operator*() [3/5]

EvtGammaMatrix operator* ( const EvtGammaMatrix g,
const EvtComplex c 
)

Definition at line 46 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.cc.

45{
46 return c*g;
47}

◆ operator*() [4/5]

EvtDiracSpinor operator* ( const EvtGammaMatrix g,
const EvtDiracSpinor d 
)

Definition at line 48 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.cc.

573 {
574
575 int i,j;
576 EvtDiracSpinor temp;
577
578 for(i=0;i<4;i++){
579 temp.set_spinor(i,EvtComplex(0.0,0.0));
580 for(j=0;j<4;j++){
581 temp.set_spinor(i,temp.get_spinor(i)+g.gamma[i][j]*d.get_spinor(j));
582 }
583 }
584
585 return temp;
586}

◆ operator*() [5/5]

EvtGammaMatrix operator* ( const EvtGammaMatrix g1,
const EvtGammaMatrix g2 
)
inline

Definition at line 100 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.hh.

100 {
101 return EvtGammaMatrix(g1)*=g2;
102}
TF1 * g1

◆ operator+()

EvtGammaMatrix operator+ ( const EvtGammaMatrix g1,
const EvtGammaMatrix g2 
)
inline

Definition at line 92 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.hh.

92 {
93 return EvtGammaMatrix(g1)+=g2;
94}

◆ operator-()

EvtGammaMatrix operator- ( const EvtGammaMatrix g1,
const EvtGammaMatrix g2 
)
inline

Definition at line 96 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.hh.

96 {
97 return EvtGammaMatrix(g1)-=g2;
98}

◆ operator/()

EvtGammaMatrix operator/ ( const EvtGammaMatrix g,
const double  d 
)
inline

Definition at line 104 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.hh.

105{
106 return g * EvtComplex(1/d,0);
107}

◆ operator<<()

std::ostream & operator<< ( std::ostream &  s,
const EvtGammaMatrix v 
)

◆ slash()