#include <EvtTensor3C.hh>
|
EvtTensor3C | rotateEuler (const EvtTensor3C &v, double phi, double theta, double ksi) |
|
EvtTensor3C | operator* (const EvtComplex &c, const EvtTensor3C &t2) |
|
EvtTensor3C | operator* (const double d, const EvtTensor3C &t2) |
|
EvtTensor3C | operator* (const EvtTensor3C &t2, const EvtComplex &c) |
|
EvtTensor3C | operator* (const EvtTensor3C &t2, const double d) |
|
EvtTensor3C | operator+ (const EvtTensor3C &t1, const EvtTensor3C &t2) |
|
EvtTensor3C | operator- (const EvtTensor3C &t1, const EvtTensor3C &t2) |
|
EvtTensor3C | directProd (const EvtVector3C &c1, const EvtVector3C &c2) |
|
EvtTensor3C | directProd (const EvtVector3C &c1, const EvtVector3R &c2) |
|
EvtTensor3C | directProd (const EvtVector3R &c1, const EvtVector3R &c2) |
|
EvtTensor3C | conj (const EvtTensor3C &t2) |
|
EvtTensor3C | cont22 (const EvtTensor3C &t1, const EvtTensor3C &t2) |
|
EvtTensor3C | cont11 (const EvtTensor3C &t1, const EvtTensor3C &t2) |
|
EvtTensor3C | eps (const EvtVector3R &v) |
|
std::ostream & | operator<< (std::ostream &c, const EvtTensor3C &v) |
|
Definition at line 53 of file EvtTensor3C.hh.
◆ EvtTensor3C() [1/3]
EvtTensor3C::EvtTensor3C |
( |
| ) |
|
Definition at line 98 of file EvtTensor3C.cc.
98 {
99
100 int i,j;
101
102 for(i=0;i<3;i++){
103 for(j=0;j<3;j++){
105 }
106 }
107
108}
◆ EvtTensor3C() [2/3]
Definition at line 35 of file EvtTensor3C.cc.
35 {
36
37 int i,j;
38
39 for(i=0;i<3;i++) {
40 for(j=0;j<3;j++) {
41 t[i][j] = t1.t[i][j];
42 }
43 }
44}
◆ EvtTensor3C() [3/3]
EvtTensor3C::EvtTensor3C |
( |
double | d11, |
|
|
double | d22, |
|
|
double | d33 ) |
Definition at line 46 of file EvtTensor3C.cc.
46 {
47
48 int i,j;
49
50 for(i=0;i<3;i++) {
51 for(j=0;j<3;j++) {
52 t[i][j] = 0.0;
53 }
54 }
55
56 t[0][0]=d11;
57 t[1][1]=d22;
58 t[2][2]=d33;
59
60}
◆ ~EvtTensor3C()
EvtTensor3C::~EvtTensor3C |
( |
| ) |
|
|
virtual |
◆ applyRotateEuler()
void EvtTensor3C::applyRotateEuler |
( |
double | phi, |
|
|
double | theta, |
|
|
double | ksi ) |
Definition at line 358 of file EvtTensor3C.cc.
358 {
359
361 double sp,st,sk,cp,ct,ck;
362 double r[3][3];
363 int i,j,k;
364
371
372 r[0][0]=ck*ct*cp-sk*sp;
373 r[0][1]=ck*ct*sp+sk*cp;
374 r[0][2]=-ck*st;
375
376 r[1][0]=-sk*ct*cp-ck*sp;
377 r[1][1]=-sk*ct*sp+ck*cp;
378 r[1][2]=sk*st;
379
380 r[2][0]=st*cp;
381 r[2][1]=st*sp;
382 r[2][2]=ct;
383
384 for(i=0;i<3;i++){
385 for(j=0;j<3;j++){
386 temp[i][j]=0.0;
387 for(k=0;k<3;k++){
388 temp[i][j]+=r[i][k]*t[k][j];
389 }
390 }
391 }
392
393 for(i=0;i<3;i++){
394 for(j=0;j<3;j++){
395 t[i][j]=0.0;
396 for(k=0;k<3;k++){
397 t[i][j]+=r[i][k]*temp[j][k];
398 }
399 }
400 }
401
402
403}
double sin(const BesAngle a)
double cos(const BesAngle a)
◆ conj()
Definition at line 75 of file EvtTensor3C.cc.
75 {
77
78 int i,j;
79
80 for(i=0;i<3;i++) {
81 for(j=0;j<3;j++) {
83 }
84 }
85 return temp;
86}
friend EvtTensor3C conj(const EvtTensor3C &t2)
void set(int i, int j, const EvtComplex &c)
◆ cont1() [1/2]
Definition at line 254 of file EvtTensor3C.cc.
254 {
256
257 int i;
258
259 for(i=0;i<3;i++){
260 temp.
set(i,t[0][i]*
v.get(0)+t[1][i]*
v.get(1)
262 }
263
264 return temp;
265}
**********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
void set(const int, const EvtComplex &)
◆ cont1() [2/2]
Definition at line 280 of file EvtTensor3C.cc.
280 {
282
283 int i;
284
285 for(i=0;i<3;i++){
286 temp.
set(i,t[0][i]*
v.get(0)+t[1][i]*
v.get(1)
288 }
289
290 return temp;
291}
◆ cont2() [1/2]
Definition at line 267 of file EvtTensor3C.cc.
267 {
269
270 int i;
271
272 for(i=0;i<3;i++){
273 temp.
set(i,t[i][0]*
v.get(0)+t[i][1]*
v.get(1)
275 }
276
277 return temp;
278}
◆ cont2() [2/2]
Definition at line 293 of file EvtTensor3C.cc.
293 {
295
296 int i;
297
298 for(i=0;i<3;i++){
299 temp.
set(i,t[i][0]*
v.get(0)+t[i][1]*
v.get(1)
301 }
302
303 return temp;
304}
◆ get()
const EvtComplex & EvtTensor3C::get |
( |
int | i, |
|
|
int | j ) const |
|
inline |
◆ id()
◆ operator*=() [1/2]
Definition at line 150 of file EvtTensor3C.cc.
150 {
151
152 int i,j;
153
154 for (i=0;i<3;i++) {
155 for (j=0;j<3;j++) {
157 }
158 }
159 return *this;
160}
◆ operator*=() [2/2]
Definition at line 137 of file EvtTensor3C.cc.
137 {
138
139 int i,j;
140
141 for (i=0;i<3;i++) {
142 for (j=0;j<3;j++) {
143 t[i][j]*=c;
144 }
145 }
146 return *this;
147}
◆ operator+=()
Definition at line 110 of file EvtTensor3C.cc.
110 {
111
112 int i,j;
113
114 for (i=0;i<3;i++) {
115 for (j=0;j<3;j++) {
116 t[i][j]+=t2.t[i][j];
117 }
118 }
119 return *this;
120}
◆ operator-=()
Definition at line 123 of file EvtTensor3C.cc.
123 {
124
125 int i,j;
126
127 for (i=0;i<3;i++) {
128 for (j=0;j<3;j++) {
129 t[i][j]-=t2.t[i][j];
130 }
131 }
132 return *this;
133}
◆ operator=()
Definition at line 64 of file EvtTensor3C.cc.
64 {
65 int i,j;
66
67 for(i=0;i<3;i++) {
68 for(j=0;j<3;j++) {
69 t[i][j] = t1.t[i][j];
70 }
71 }
72 return *this;
73}
◆ set()
void EvtTensor3C::set |
( |
int | i, |
|
|
int | j, |
|
|
const EvtComplex & | c ) |
|
inline |
◆ trace()
Definition at line 139 of file EvtTensor3C.hh.
139 {
140 return t[0][0]+t[1][1]+t[2][2];
141}
◆ zero()
void EvtTensor3C::zero |
( |
| ) |
|
Definition at line 88 of file EvtTensor3C.cc.
88 {
89 int i,j;
90 for(i=0;i<3;i++){
91 for(j=0;j<3;j++){
93 }
94 }
95}
◆ conj
Definition at line 204 of file EvtTensor3C.cc.
204 {
206
207 int i,j;
208
209 for(i=0;i<3;i++){
210 for(j=0;j<3;j++){
212 }
213 }
214
215 return temp;
216}
const EvtComplex & get(int i, int j) const
Referenced by eps().
◆ cont11
Definition at line 236 of file EvtTensor3C.cc.
236 {
238
239 int i,j;
241
242 for(i=0;i<3;i++){
243 for(j=0;j<3;j++){
247 }
248 }
249
250 return temp;
251}
◆ cont22
Definition at line 219 of file EvtTensor3C.cc.
219 {
221
222 int i,j;
224
225 for(i=0;i<3;i++){
226 for(j=0;j<3;j++){
230 }
231 }
232
233 return temp;
234}
◆ directProd [1/3]
Definition at line 165 of file EvtTensor3C.cc.
165 {
167 int i,j;
168
169 for (i=0;i<3;i++) {
170 for (j=0;j<3;j++) {
172 }
173 }
174 return temp;
175}
const EvtComplex & get(int) const
◆ directProd [2/3]
Definition at line 178 of file EvtTensor3C.cc.
178 {
180 int i,j;
181
182 for (i=0;i<3;i++) {
183 for (j=0;j<3;j++) {
185 }
186 }
187 return temp;
188}
◆ directProd [3/3]
Definition at line 191 of file EvtTensor3C.cc.
191 {
193 int i,j;
194
195 for (i=0;i<3;i++) {
196 for (j=0;j<3;j++) {
198 }
199 }
200 return temp;
201}
◆ eps
Definition at line 307 of file EvtTensor3C.cc.
307 {
308
310
311 temp.t[0][0]=0.0;
312 temp.t[1][1]=0.0;
313 temp.t[2][2]=0.0;
314
315 temp.t[0][1]=
v.get(2);
316 temp.t[0][2]=-
v.get(1);
317
318 temp.t[1][0]=-
v.get(2);
319 temp.t[1][2]=
v.get(0);
320
321 temp.t[2][0]=
v.get(1);
322 temp.t[2][1]=-
v.get(0);
323
324 return temp;
325
326}
◆ operator* [1/4]
◆ operator* [2/4]
◆ operator* [3/4]
◆ operator* [4/4]
◆ operator+
◆ operator-
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | c, |
|
|
const EvtTensor3C & | v ) |
|
friend |
◆ rotateEuler
Definition at line 348 of file EvtTensor3C.cc.
349 {
350
352 tmp.applyRotateEuler(
alpha,beta,gamma);
353 return tmp;
354
355}
The documentation for this class was generated from the following files: