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

Function Documentation

◆ boostTo() [1/2]

EvtRaritaSchwinger boostTo ( const EvtRaritaSchwinger rs,
const EvtVector3R  boost 
)

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

50 {
51
52 EvtRaritaSchwinger tmp(rs);
53 tmp.applyBoostTo(boost);
54 return tmp;
55
56}

◆ boostTo() [2/2]

EvtRaritaSchwinger boostTo ( const EvtRaritaSchwinger rs,
const EvtVector4R  p4 
)

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

41 {
42
43 EvtRaritaSchwinger tmp(rs);
44 tmp.applyBoostTo(p4);
45 return tmp;
46
47}

◆ dirProd() [1/2]

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

207 {
208
209 int i,j;
210
212
213 for(i=0;i<4;i++){
214 for(j=0;j<4;j++){
215 tmp._rs[i][j]=u.get_spinor(i)*v.get(j);
216 }
217 }
218
219 return tmp;
220
221}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

◆ dirProd() [2/2]

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

190 {
191
192 int i,j;
193
195
196 for(i=0;i<4;i++){
197 for(j=0;j<4;j++){
198 tmp._rs[i][j]=u.get_spinor(i)*v.get(j);
199 }
200 }
201
202 return tmp;
203
204}

◆ operator*()

EvtComplex operator* ( const EvtRaritaSchwinger u1,
const EvtRaritaSchwinger u2 
)

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

225 {
226
227 int i,j;
228 EvtComplex tmp=0.0;
229
230 for(i=0;i<4;i++){
231 for(j=0;j<4;j++){
232 tmp+=conj(u1._rs[i][j])*u2._rs[i][j];
233 }
234 }
235
236 return tmp;
237
238}
Evt3Rank3C conj(const Evt3Rank3C &t2)

◆ operator+()

EvtRaritaSchwinger operator+ ( const EvtRaritaSchwinger u1,
const EvtRaritaSchwinger u2 
)

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

256 {
257
258 return EvtRaritaSchwinger(u1)+=u2;
259
260}

◆ operator-()

EvtRaritaSchwinger operator- ( const EvtRaritaSchwinger u1,
const EvtRaritaSchwinger u2 
)

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

276 {
277
278 return EvtRaritaSchwinger(u1)-=u2;
279
280}

◆ operator<<()

ostream & operator<< ( ostream &  s,
const EvtRaritaSchwinger rs 
)

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

140 {
141
142 int i,j;
143 s<< endl;
144 for(i=0;i<4;i++){
145 for(j=0;j<4;j++){
146 s << rs._rs[i][j];
147 }
148 s << endl;
149 }
150 return s;
151
152}
XmlRpcServer s
Definition: HelloServer.cpp:11

◆ rotateEuler()

EvtRaritaSchwinger rotateEuler ( const EvtRaritaSchwinger rs,
double  alpha,
double  beta,
double  gamma 
)

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

32 {
33
34 EvtRaritaSchwinger tmp(rs);
35 tmp.applyRotateEuler(alpha,beta,gamma);
36 return tmp;
37
38}
const double alpha