#include "EvtGenBase/EvtPatches.hh"
#include "EvtGenBase/EvtRaritaSchwinger.hh"
Go to the source code of this file.
Functions | |
EvtRaritaSchwinger | rotateEuler (const EvtRaritaSchwinger &rs, double alpha, double beta, double gamma) |
EvtRaritaSchwinger | boostTo (const EvtRaritaSchwinger &rs, const EvtVector4R p4) |
EvtRaritaSchwinger | boostTo (const EvtRaritaSchwinger &rs, const EvtVector3R boost) |
ostream & | operator<< (ostream &s, const EvtRaritaSchwinger &rs) |
EvtRaritaSchwinger | dirProd (EvtVector4R v, EvtDiracSpinor u) |
EvtRaritaSchwinger | dirProd (EvtVector4C v, EvtDiracSpinor u) |
EvtComplex | operator * (const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2) |
EvtRaritaSchwinger | operator+ (const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2) |
EvtRaritaSchwinger | operator- (const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2) |
EvtRaritaSchwinger boostTo | ( | const EvtRaritaSchwinger & | rs, | |
const EvtVector3R | boost | |||
) |
Definition at line 49 of file EvtRaritaSchwinger.cc.
00050 { 00051 00052 EvtRaritaSchwinger tmp(rs); 00053 tmp.applyBoostTo(boost); 00054 return tmp; 00055 00056 }
EvtRaritaSchwinger boostTo | ( | const EvtRaritaSchwinger & | rs, | |
const EvtVector4R | p4 | |||
) |
Definition at line 40 of file EvtRaritaSchwinger.cc.
00041 { 00042 00043 EvtRaritaSchwinger tmp(rs); 00044 tmp.applyBoostTo(p4); 00045 return tmp; 00046 00047 }
EvtRaritaSchwinger dirProd | ( | EvtVector4C | v, | |
EvtDiracSpinor | u | |||
) |
Definition at line 207 of file EvtRaritaSchwinger.cc.
References EvtRaritaSchwinger::_rs, EvtDiracSpinor::get_spinor(), genRecEmupikp::i, ganga-rec::j, and v.
00207 { 00208 00209 int i,j; 00210 00211 EvtRaritaSchwinger tmp; 00212 00213 for(i=0;i<4;i++){ 00214 for(j=0;j<4;j++){ 00215 tmp._rs[i][j]=u.get_spinor(i)*v.get(j); 00216 } 00217 } 00218 00219 return tmp; 00220 00221 }
EvtRaritaSchwinger dirProd | ( | EvtVector4R | v, | |
EvtDiracSpinor | u | |||
) |
Definition at line 190 of file EvtRaritaSchwinger.cc.
Referenced by EvtRaritaSchwingerParticle::init(), and EvtRaritaSchwingerParticle::rotateToHelicityBasis().
00190 { 00191 00192 int i,j; 00193 00194 EvtRaritaSchwinger tmp; 00195 00196 for(i=0;i<4;i++){ 00197 for(j=0;j<4;j++){ 00198 tmp._rs[i][j]=u.get_spinor(i)*v.get(j); 00199 } 00200 } 00201 00202 return tmp; 00203 00204 }
EvtComplex operator * | ( | const EvtRaritaSchwinger & | u1, | |
const EvtRaritaSchwinger & | u2 | |||
) |
Definition at line 224 of file EvtRaritaSchwinger.cc.
00225 { 00226 00227 int i,j; 00228 EvtComplex tmp=0.0; 00229 00230 for(i=0;i<4;i++){ 00231 for(j=0;j<4;j++){ 00232 tmp+=conj(u1._rs[i][j])*u2._rs[i][j]; 00233 } 00234 } 00235 00236 return tmp; 00237 00238 }
EvtRaritaSchwinger operator+ | ( | const EvtRaritaSchwinger & | u1, | |
const EvtRaritaSchwinger & | u2 | |||
) |
Definition at line 255 of file EvtRaritaSchwinger.cc.
00256 { 00257 00258 return EvtRaritaSchwinger(u1)+=u2; 00259 00260 }
EvtRaritaSchwinger operator- | ( | const EvtRaritaSchwinger & | u1, | |
const EvtRaritaSchwinger & | u2 | |||
) |
Definition at line 275 of file EvtRaritaSchwinger.cc.
00276 { 00277 00278 return EvtRaritaSchwinger(u1)-=u2; 00279 00280 }
ostream& operator<< | ( | ostream & | s, | |
const EvtRaritaSchwinger & | rs | |||
) |
Definition at line 140 of file EvtRaritaSchwinger.cc.
References EvtRaritaSchwinger::_rs, genRecEmupikp::i, and ganga-rec::j.
00140 { 00141 00142 int i,j; 00143 s<< endl; 00144 for(i=0;i<4;i++){ 00145 for(j=0;j<4;j++){ 00146 s << rs._rs[i][j]; 00147 } 00148 s << endl; 00149 } 00150 return s; 00151 00152 }
EvtRaritaSchwinger rotateEuler | ( | const EvtRaritaSchwinger & | rs, | |
double | alpha, | |||
double | beta, | |||
double | gamma | |||
) |
Definition at line 31 of file EvtRaritaSchwinger.cc.
00032 { 00033 00034 EvtRaritaSchwinger tmp(rs); 00035 tmp.applyRotateEuler(alpha,beta,gamma); 00036 return tmp; 00037 00038 }