/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/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)
ostreamoperator<< (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

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

Definition at line 589 of file EvtGammaMatrix.cc.

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.

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 EvtComplex c,
const EvtGammaMatrix g 
)

Definition at line 50 of file EvtGammaMatrix.cc.

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 g,
const EvtComplex c 
)

Definition at line 44 of file EvtGammaMatrix.cc.

00045 {
00046     return c*g;
00047 }

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

Definition at line 66 of file EvtGammaMatrix.cc.

References EvtGammaMatrix::gamma.

00066                                                         {
00067 
00068 
00069   s<<"["<<g.gamma[0][0]<<","<<g.gamma[0][1]<<","<<g.gamma[0][2]<<","<<g.gamma[0][3]<<"]"<<endl;
00070   s<<"["<<g.gamma[1][0]<<","<<g.gamma[1][1]<<","<<g.gamma[1][2]<<","<<g.gamma[1][3]<<"]"<<endl;
00071   s<<"["<<g.gamma[2][0]<<","<<g.gamma[2][1]<<","<<g.gamma[2][2]<<","<<g.gamma[2][3]<<"]"<<endl;
00072   s<<"["<<g.gamma[3][0]<<","<<g.gamma[3][1]<<","<<g.gamma[3][2]<<","<<g.gamma[3][3]<<"]"<<endl;
00073 
00074   return s;
00075 
00076 }

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 }


Generated on Tue Nov 29 23:15:53 2016 for BOSS_7.0.2 by  doxygen 1.4.7