BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
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 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 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)
Definition: Evt3Rank3C.cc:175
const EvtComplex & get_spinor(int i) const

◆ operator*() [3/4]

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

Definition at line 44 of file 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 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}
void set_spinor(int i, const EvtComplex &sp)

◆ operator<<()

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

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

EvtGammaMatrix slash ( const EvtVector4C p)

Definition at line 671 of file EvtGammaMatrix.cc.

672{
674}
static const EvtGammaMatrix & g0()
static const EvtGammaMatrix & g2()
static const EvtGammaMatrix & g1()
static const EvtGammaMatrix & g3()
const EvtComplex & get(int) const
Definition: EvtVector4C.hh:131

Referenced by EvtLambdaP_BarGamma::decay().