BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtGammaMatrix.cc File Reference
#include "EvtGenBase/EvtPatches.hh"
#include <iostream>
#include <math.h>
#include <assert.h>
#include "EvtGenBase/EvtComplex.hh"
#include "EvtGenBase/EvtGammaMatrix.hh"
#include "EvtGenBase/EvtDiracSpinor.hh"
#include "EvtGenBase/EvtReport.hh"
#include "EvtGenBase/EvtTensor4C.hh"
#include "EvtGenBase/EvtVector4C.hh"

Go to the source code of this file.

Functions

EvtGammaMatrix operator* (const EvtGammaMatrix &g, const EvtComplex &c)
 
EvtGammaMatrix operator* (const EvtComplex &c, const EvtGammaMatrix &g)
 
ostream & operator<< (ostream &s, const EvtGammaMatrix &g)
 
EvtDiracSpinor operator* (const EvtGammaMatrix &g, const EvtDiracSpinor &d)
 
EvtComplex operator* (const EvtDiracSpinor &d, const EvtDiracSpinor &dp)
 
EvtGammaMatrix slash (const EvtVector4C &p)
 

Function Documentation

◆ operator*() [1/4]

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

Definition at line 50 of file 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/4]

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

Definition at line 589 of file 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/4]

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

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

45{
46 return c*g;
47}

◆ operator*() [4/4]

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

Definition at line 573 of file 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<<()

ostream & operator<< ( ostream &  s,
const EvtGammaMatrix g 
)

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

66 {
67
68
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;
73
74 return s;
75
76}
XmlRpcServer s
Definition: HelloServer.cpp:11

◆ slash()