BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRaritaSchwinger.cc File Reference
#include "EvtPatches.hh"
#include "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 43 of file EvtRaritaSchwinger.cc.

43 {
44
45 EvtRaritaSchwinger tmp( rs );
46 tmp.applyBoostTo( boost );
47 return tmp;
48}

◆ boostTo() [2/2]

EvtRaritaSchwinger boostTo ( const EvtRaritaSchwinger & rs,
const EvtVector4R p4 )

Definition at line 36 of file EvtRaritaSchwinger.cc.

36 {
37
38 EvtRaritaSchwinger tmp( rs );
39 tmp.applyBoostTo( p4 );
40 return tmp;
41}

◆ dirProd() [1/2]

Definition at line 178 of file EvtRaritaSchwinger.cc.

178 {
179
180 int i, j;
181
183
184 for ( i = 0; i < 4; i++ )
185 {
186 for ( j = 0; j < 4; j++ ) { tmp._rs[i][j] = u.get_spinor( i ) * v.get( j ); }
187 }
188
189 return tmp;
190}
**********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
const EvtComplex & get_spinor(int i) const

◆ dirProd() [2/2]

Definition at line 164 of file EvtRaritaSchwinger.cc.

164 {
165
166 int i, j;
167
169
170 for ( i = 0; i < 4; i++ )
171 {
172 for ( j = 0; j < 4; j++ ) { tmp._rs[i][j] = u.get_spinor( i ) * v.get( j ); }
173 }
174
175 return tmp;
176}

Referenced by EvtRaritaSchwingerParticle::init(), EvtRaritaSchwingerParticle::rotateToHelicityBasis(), and EvtRaritaSchwingerParticle::rotateToHelicityBasis().

◆ operator*()

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

Definition at line 192 of file EvtRaritaSchwinger.cc.

192 {
193
194 int i, j;
195 EvtComplex tmp = 0.0;
196
197 for ( i = 0; i < 4; i++ )
198 {
199 for ( j = 0; j < 4; j++ ) { tmp += conj( u1._rs[i][j] ) * u2._rs[i][j]; }
200 }
201
202 return tmp;
203}
Evt3Rank3C conj(const Evt3Rank3C &t2)

◆ operator+()

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

Definition at line 217 of file EvtRaritaSchwinger.cc.

217 {
218
219 return EvtRaritaSchwinger( u1 ) += u2;
220}

◆ operator-()

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

Definition at line 234 of file EvtRaritaSchwinger.cc.

234 {
235
236 return EvtRaritaSchwinger( u1 ) -= u2;
237}

◆ operator<<()

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

Definition at line 123 of file EvtRaritaSchwinger.cc.

123 {
124
125 int i, j;
126 s << endl;
127 for ( i = 0; i < 4; i++ )
128 {
129 for ( j = 0; j < 4; j++ ) { s << rs._rs[i][j]; }
130 s << endl;
131 }
132 return s;
133}
XmlRpcServer s

◆ rotateEuler()

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

Definition at line 28 of file EvtRaritaSchwinger.cc.

29 {
30
31 EvtRaritaSchwinger tmp( rs );
32 tmp.applyRotateEuler( alpha, beta, gamma );
33 return tmp;
34}
double alpha