CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtRaritaSchwinger.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of the EvtGen package developed jointly
5// for the BaBar and CLEO collaborations. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 2000 Caltech, UCSB
10//
11// Module: EvtGen/EvtRaritaSchwing.hh
12//
13// Description:Class to handle spin 3/2
14//
15// Modification history:
16//
17// RYD April 23, 2000 Module created
18//
19//------------------------------------------------------------------------
20
21#ifndef EVTRARITASCHWINGER_HH
22#define EVTRARITASCHWINGER_HH
23
28
31 double alpha,double beta,double gamma);
33 const EvtVector4R p4);
35 const EvtVector3R boost);
40 const EvtRaritaSchwinger& u2);
42 const EvtRaritaSchwinger& u2);
44 const EvtRaritaSchwinger& u2);
45
46//========================
48
50 double alpha,double beta,double gamma);
52 const EvtVector4R p4);
54 const EvtVector3R boost);
55
58 friend EvtRaritaSchwinger conj(const EvtRaritaSchwinger& u2);//pangcy add
60 const EvtRaritaSchwinger& u2);
62 const EvtRaritaSchwinger& u2);
63
65 const EvtRaritaSchwinger& u2);
66
67public:
68
69 inline EvtRaritaSchwinger();
70 virtual ~EvtRaritaSchwinger();
71 inline EvtRaritaSchwinger(const EvtRaritaSchwinger& rs);
73
74 void set(int i,int j,const EvtComplex& sp);
75// inline const EvtComplex& get(int i, int j) const; //pangcy add
76
77 void applyRotateEuler(double alpha,double beta,double gamma);
78 void applyBoostTo(const EvtVector4R p4);
79 void applyBoostTo(const EvtVector3R boost);
80 EvtRaritaSchwinger conj() const; //pangcy add
81
84
85 EvtComplex get(int i,int j) const;
86 friend std::ostream& operator<<(std::ostream& s, const EvtRaritaSchwinger& rs);
87
88 EvtVector4C getVector(int i) const;
89 EvtDiracSpinor getSpinor(int i) const;
90
91 void setVector(int i,const EvtVector4C& v);
92 void setSpinor(int i,const EvtDiracSpinor& sp);
93
94
95
96private:
97
98 //First index in spinor index, second is Lorentz index.
99 EvtComplex _rs[4][4];
100
101};
102
104
105 int i,j;
106 for(i=0;i<4;i++){
107 for(j=0;j<4;j++){
108 _rs[i][j]=0.0;
109 }
110 }
111
112}
113
115
116 int i,j;
117 for(i=0;i<4;i++){
118 for(j=0;j<4;j++){
119 _rs[i][j]=rs._rs[i][j];
120 }
121 }
122
123}
124
126
127 int i,j;
128 for(i=0;i<4;i++){
129 for(j=0;j<4;j++){
130 _rs[i][j]=rs._rs[i][j];
131 }
132 }
133
134 return *this;
135
136}
137
138#endif
139
140
EvtRaritaSchwinger operator+(const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2)
EvtRaritaSchwinger boostTo(const EvtRaritaSchwinger &rs, const EvtVector4R p4)
EvtRaritaSchwinger conj(const EvtRaritaSchwinger &u2)
EvtRaritaSchwinger rotateEuler(const EvtRaritaSchwinger &rs, double alpha, double beta, double gamma)
EvtRaritaSchwinger operator-(const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2)
EvtComplex operator*(const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2)
EvtRaritaSchwinger dirProd(EvtVector4R v, EvtDiracSpinor u)
const double alpha
XmlRpcServer s
**********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
EvtDiracSpinor getSpinor(int i) const
friend EvtRaritaSchwinger operator+(const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2)
void applyRotateEuler(double alpha, double beta, double gamma)
void setSpinor(int i, const EvtDiracSpinor &sp)
friend EvtRaritaSchwinger boostTo(const EvtRaritaSchwinger &rs, const EvtVector4R p4)
void set(int i, int j, const EvtComplex &sp)
EvtRaritaSchwinger conj() const
EvtRaritaSchwinger & operator=(const EvtRaritaSchwinger &rs)
EvtComplex get(int i, int j) const
EvtRaritaSchwinger & operator+=(const EvtRaritaSchwinger &u2)
friend EvtRaritaSchwinger conj(const EvtRaritaSchwinger &u2)
friend EvtRaritaSchwinger rotateEuler(const EvtRaritaSchwinger &rs, double alpha, double beta, double gamma)
EvtRaritaSchwinger & operator-=(const EvtRaritaSchwinger &u2)
friend EvtRaritaSchwinger operator-(const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2)
friend EvtComplex operator*(const EvtRaritaSchwinger &u1, const EvtRaritaSchwinger &u2)
void setVector(int i, const EvtVector4C &v)
friend std::ostream & operator<<(std::ostream &s, const EvtRaritaSchwinger &rs)
void applyBoostTo(const EvtVector4R p4)
friend EvtRaritaSchwinger dirProd(EvtVector4R v, EvtDiracSpinor u)
EvtVector4C getVector(int i) const