CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
Evt3Rank3C Class Reference

#include <Evt3Rank3C.hh>

Public Member Functions

 Evt3Rank3C ()
 
 Evt3Rank3C (const Evt3Rank3C &t1)
 
virtual ~Evt3Rank3C ()
 
Evt3Rank3Coperator= (const Evt3Rank3C &t1)
 
void set (int i, int j, int k, const EvtComplex &c)
 
const EvtComplexget (int i, int j, int k) const
 
void zero ()
 
void dump () const
 
Evt3Rank3Coperator+= (const Evt3Rank3C &t2)
 
Evt3Rank3Coperator-= (const Evt3Rank3C &t2)
 
Evt3Rank3Coperator*= (const double d)
 
Evt3Rank3Coperator*= (const EvtComplex &c)
 
Evt3Rank3C conj () const
 
EvtTensor3C cont1 (const EvtVector3C &v) const
 
EvtTensor3C cont2 (const EvtVector3C &v) const
 
EvtTensor3C cont3 (const EvtVector3C &v) const
 
EvtTensor3C cont1 (const EvtVector3R &v) const
 
EvtTensor3C cont2 (const EvtVector3R &v) const
 
EvtTensor3C cont3 (const EvtVector3R &v) const
 

Friends

Evt3Rank3C operator* (const EvtComplex &c, const Evt3Rank3C &t2)
 
Evt3Rank3C operator* (const double d, const Evt3Rank3C &t2)
 
Evt3Rank3C operator* (const Evt3Rank3C &t2, const EvtComplex &c)
 
Evt3Rank3C operator* (const Evt3Rank3C &t2, const double d)
 
Evt3Rank3C operator+ (const Evt3Rank3C &t1, const Evt3Rank3C &t2)
 
Evt3Rank3C operator- (const Evt3Rank3C &t1, const Evt3Rank3C &t2)
 
Evt3Rank3C directProd (const EvtVector3C &c1, const EvtVector3C &c2, const EvtVector3C &c3)
 
Evt3Rank3C conj (const Evt3Rank3C &t2)
 

Detailed Description

Definition at line 47 of file Evt3Rank3C.hh.

Constructor & Destructor Documentation

◆ Evt3Rank3C() [1/2]

Evt3Rank3C::Evt3Rank3C ( )

Definition at line 89 of file Evt3Rank3C.cc.

89 {
90
91 int i,j,k;
92
93 for(i=0;i<3;i++){
94 for(j=0;j<3;j++){
95 for(k=0;k<3;k++){
96 t[i][j][k]=EvtComplex(0.0,0.0);
97 }
98 }
99 }
100
101}

◆ Evt3Rank3C() [2/2]

Evt3Rank3C::Evt3Rank3C ( const Evt3Rank3C t1)

Definition at line 32 of file Evt3Rank3C.cc.

32 {
33
34 int i,j,k;
35
36 for(i=0;i<3;i++) {
37 for(j=0;j<3;j++) {
38 for(k=0;k<3;j++) {
39 t[i][j][k] = t1.t[i][j][k];
40 }
41 }
42 }
43}

◆ ~Evt3Rank3C()

Evt3Rank3C::~Evt3Rank3C ( )
virtual

Definition at line 45 of file Evt3Rank3C.cc.

45{ }

Member Function Documentation

◆ conj()

Evt3Rank3C Evt3Rank3C::conj ( ) const

Definition at line 62 of file Evt3Rank3C.cc.

62 {
63 Evt3Rank3C temp;
64
65 int i,j,k;
66
67 for(i=0;i<3;i++) {
68 for(j=0;j<3;j++) {
69 for(k=0;k<3;k++) {
70 temp.set(j,i,k,::conj(t[i][j][k]));
71 }
72 }
73 }
74 return temp;
75}
friend Evt3Rank3C conj(const Evt3Rank3C &t2)
Definition: Evt3Rank3C.cc:175
void set(int i, int j, int k, const EvtComplex &c)
Definition: Evt3Rank3C.hh:113

◆ cont1() [1/2]

EvtTensor3C Evt3Rank3C::cont1 ( const EvtVector3C v) const

Definition at line 190 of file Evt3Rank3C.cc.

190 {
191 EvtTensor3C temp;
192
193 int i,k;
194
195 for(i=0;i<3;i++){
196 for(k=0;k<3;k++){
197 temp.set(i,k,t[0][i][k]*v.get(0)+t[1][i][k]*v.get(1)
198 +t[2][i][k]*v.get(2));
199 }
200 }
201 return temp;
202}
**********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
void set(int i, int j, const EvtComplex &c)
Definition: EvtTensor3C.hh:131

◆ cont1() [2/2]

EvtTensor3C Evt3Rank3C::cont1 ( const EvtVector3R v) const

Definition at line 234 of file Evt3Rank3C.cc.

234 {
235 EvtTensor3C temp;
236
237 int i,k;
238
239 for(i=0;i<3;i++){
240 for(k=0;k<3;k++){
241 temp.set(i,k,t[0][i][k]*v.get(0)+t[1][i][k]*v.get(1)
242 +t[2][i][k]*v.get(2));
243 }
244 }
245 return temp;
246}

◆ cont2() [1/2]

EvtTensor3C Evt3Rank3C::cont2 ( const EvtVector3C v) const

Definition at line 205 of file Evt3Rank3C.cc.

205 {
206 EvtTensor3C temp;
207
208 int i,k;
209
210 for(i=0;i<3;i++){
211 for(k=0;k<3;k++){
212 temp.set(i,k,t[i][0][k]*v.get(0)+t[i][1][k]*v.get(1)
213 +t[i][2][k]*v.get(2));
214 }
215 }
216 return temp;
217}

◆ cont2() [2/2]

EvtTensor3C Evt3Rank3C::cont2 ( const EvtVector3R v) const

Definition at line 249 of file Evt3Rank3C.cc.

249 {
250 EvtTensor3C temp;
251
252 int i,k;
253
254 for(i=0;i<3;i++){
255 for(k=0;k<3;k++){
256 temp.set(i,k,t[i][0][k]*v.get(0)+t[i][1][k]*v.get(1)
257 +t[i][2][k]*v.get(2));
258 }
259 }
260 return temp;
261}

◆ cont3() [1/2]

EvtTensor3C Evt3Rank3C::cont3 ( const EvtVector3C v) const

Definition at line 220 of file Evt3Rank3C.cc.

220 {
221 EvtTensor3C temp;
222
223 int i,k;
224
225 for(i=0;i<3;i++){
226 for(k=0;k<3;k++){
227 temp.set(i,k,t[i][k][0]*v.get(0)+t[i][k][1]*v.get(1)
228 +t[i][k][2]*v.get(2));
229 }
230 }
231 return temp;
232}

◆ cont3() [2/2]

EvtTensor3C Evt3Rank3C::cont3 ( const EvtVector3R v) const

Definition at line 264 of file Evt3Rank3C.cc.

264 {
265 EvtTensor3C temp;
266
267 int i,k;
268
269 for(i=0;i<3;i++){
270 for(k=0;k<3;k++){
271 temp.set(i,k,t[i][k][0]*v.get(0)+t[i][k][1]*v.get(1)
272 +t[i][k][2]*v.get(2));
273 }
274 }
275 return temp;
276}

◆ dump()

void Evt3Rank3C::dump ( ) const

Definition at line 103 of file Evt3Rank3C.cc.

103 {
104 int i,j,k;
105 for(k=0;k<3;k++){
106 for(i=0;i<3;i++){
107 for(j=0;j<3;j++){
108 report(INFO,"EvtGen") <<t[k][i][j];
109 }
110 report(INFO,"EvtGen") << "\n";
111 }
112 }
113}
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ INFO
Definition: EvtReport.hh:52

◆ get()

const EvtComplex & Evt3Rank3C::get ( int  i,
int  j,
int  k 
) const
inline

Definition at line 117 of file Evt3Rank3C.hh.

117 {
118 return t[i][j][k];
119}

Referenced by operator+=(), and operator-=().

◆ operator*=() [1/2]

Evt3Rank3C & Evt3Rank3C::operator*= ( const double  d)

Definition at line 160 of file Evt3Rank3C.cc.

160 {
161 int i,j,k;
162
163 for (i=0;i<3;i++) {
164 for (j=0;j<3;j++) {
165 for (k=0;k<3;k++) {
166 t[i][j][k]*=EvtComplex(c);
167 }
168 }
169 }
170
171 return *this;
172
173}

◆ operator*=() [2/2]

Evt3Rank3C & Evt3Rank3C::operator*= ( const EvtComplex c)

Definition at line 146 of file Evt3Rank3C.cc.

146 {
147
148 int i,j,k;
149
150 for (i=0;i<3;i++) {
151 for (j=0;j<3;j++) {
152 for (k=0;k<3;k++) {
153 t[i][j][k]*=c;
154 }
155 }
156 }
157 return *this;
158}

◆ operator+=()

Evt3Rank3C & Evt3Rank3C::operator+= ( const Evt3Rank3C t2)

Definition at line 115 of file Evt3Rank3C.cc.

115 {
116
117 int i,j,k;
118
119 for (i=0;i<3;i++) {
120 for (j=0;j<3;j++) {
121 for (k=0;k<3;k++) {
122 t[i][j][k]+=t2.get(i,j,k);
123 }
124 }
125 }
126 return *this;
127}
const EvtComplex & get(int i, int j, int k) const
Definition: Evt3Rank3C.hh:117

◆ operator-=()

Evt3Rank3C & Evt3Rank3C::operator-= ( const Evt3Rank3C t2)

Definition at line 129 of file Evt3Rank3C.cc.

129 {
130
131 int i,j,k;
132
133 for (i=0;i<3;i++) {
134 for (j=0;j<3;j++) {
135 for (k=0;k<3;k++) {
136 t[i][j][k]-=t2.get(i,j,k);
137 }
138 }
139 }
140
141 return *this;
142
143}

◆ operator=()

Evt3Rank3C & Evt3Rank3C::operator= ( const Evt3Rank3C t1)

Definition at line 48 of file Evt3Rank3C.cc.

48 {
49 int i,j,k;
50
51 for(i=0;i<3;i++) {
52 for(j=0;j<3;j++) {
53 for(k=0;k<3;k++) {
54 t[i][j][k] = t1.t[i][j][k];
55 }
56 }
57 }
58 return *this;
59}

◆ set()

void Evt3Rank3C::set ( int  i,
int  j,
int  k,
const EvtComplex c 
)
inline

Definition at line 113 of file Evt3Rank3C.hh.

113 {
114 t[i][j][k]=c;
115}

Referenced by conj().

◆ zero()

void Evt3Rank3C::zero ( )

Definition at line 77 of file Evt3Rank3C.cc.

77 {
78 int i,j,k;
79 for(i=0;i<3;i++){
80 for(j=0;j<3;j++){
81 for(k=0;k<3;k++){
82 t[i][j][k]=EvtComplex(0.0,0.0);
83 }
84 }
85 }
86}

Friends And Related Function Documentation

◆ conj

Evt3Rank3C conj ( const Evt3Rank3C t2)
friend

Definition at line 175 of file Evt3Rank3C.cc.

175 {
176 Evt3Rank3C temp;
177
178 int i,j,k;
179
180 for(i=0;i<3;i++){
181 for(j=0;j<3;j++){
182 for(k=0;k<3;k++){
183 temp.set(i,j,k,::conj((t2.get(i,j,k))));
184 }
185 }
186 }
187 return temp;
188}

Referenced by conj().

◆ directProd

Evt3Rank3C directProd ( const EvtVector3C c1,
const EvtVector3C c2,
const EvtVector3C c3 
)
friend

◆ operator* [1/4]

Evt3Rank3C operator* ( const double  d,
const Evt3Rank3C t2 
)
friend

Definition at line 93 of file Evt3Rank3C.hh.

93 {
94 return Evt3Rank3C(t2)*=d;
95}

◆ operator* [2/4]

Evt3Rank3C operator* ( const Evt3Rank3C t2,
const double  d 
)
friend

Definition at line 101 of file Evt3Rank3C.hh.

101 {
102 return Evt3Rank3C(t2)*=d;
103}

◆ operator* [3/4]

Evt3Rank3C operator* ( const Evt3Rank3C t2,
const EvtComplex c 
)
friend

Definition at line 97 of file Evt3Rank3C.hh.

97 {
98 return Evt3Rank3C(t2)*=c;
99}

◆ operator* [4/4]

Evt3Rank3C operator* ( const EvtComplex c,
const Evt3Rank3C t2 
)
friend

Definition at line 89 of file Evt3Rank3C.hh.

89 {
90 return Evt3Rank3C(t2)*=c;
91}

◆ operator+

Evt3Rank3C operator+ ( const Evt3Rank3C t1,
const Evt3Rank3C t2 
)
friend

Definition at line 105 of file Evt3Rank3C.hh.

105 {
106 return Evt3Rank3C(t1)+=t2;
107}

◆ operator-

Evt3Rank3C operator- ( const Evt3Rank3C t1,
const Evt3Rank3C t2 
)
friend

Definition at line 109 of file Evt3Rank3C.hh.

109 {
110 return Evt3Rank3C(t1)-=t2;
111}

The documentation for this class was generated from the following files: