Evt3Rank3C Class Reference

#include <Evt3Rank3C.hh>

List of all members.

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

Private Attributes

EvtComplex t [3][3][3]

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::Evt3Rank3C (  ) 

Definition at line 89 of file Evt3Rank3C.cc.

References genRecEmupikp::i, ganga-rec::j, and t.

00089                       {
00090   
00091   int i,j,k;
00092   
00093   for(i=0;i<3;i++){
00094     for(j=0;j<3;j++){
00095       for(k=0;k<3;k++){
00096         t[i][j][k]=EvtComplex(0.0,0.0);
00097       }
00098     }
00099   }
00100 
00101 }

Evt3Rank3C::Evt3Rank3C ( const Evt3Rank3C t1  ) 

Definition at line 32 of file Evt3Rank3C.cc.

References genRecEmupikp::i, ganga-rec::j, and t.

00032                                              {
00033 
00034   int i,j,k;
00035   
00036   for(i=0;i<3;i++) {
00037     for(j=0;j<3;j++) {
00038       for(k=0;k<3;j++) {
00039         t[i][j][k] = t1.t[i][j][k];
00040       }
00041     }
00042   }
00043 }

Evt3Rank3C::~Evt3Rank3C (  )  [virtual]

Definition at line 45 of file Evt3Rank3C.cc.

00045 { }


Member Function Documentation

Evt3Rank3C Evt3Rank3C::conj (  )  const

Definition at line 62 of file Evt3Rank3C.cc.

References genRecEmupikp::i, ganga-rec::j, t, and subSeperate::temp.

00062                                   {
00063   Evt3Rank3C temp;
00064   
00065   int i,j,k;
00066   
00067   for(i=0;i<3;i++) {
00068     for(j=0;j<3;j++) {
00069       for(k=0;k<3;k++) {
00070         temp.set(j,i,k,::conj(t[i][j][k]));
00071       }
00072     }
00073   }
00074   return temp;
00075 }

EvtTensor3C Evt3Rank3C::cont1 ( const EvtVector3R v  )  const

Definition at line 234 of file Evt3Rank3C.cc.

References genRecEmupikp::i, t, subSeperate::temp, and v.

00234                                                         {
00235   EvtTensor3C temp;
00236   
00237   int i,k;
00238   
00239   for(i=0;i<3;i++){
00240     for(k=0;k<3;k++){
00241       temp.set(i,k,t[0][i][k]*v.get(0)+t[1][i][k]*v.get(1)
00242              +t[2][i][k]*v.get(2));
00243     }
00244   }
00245   return temp;
00246 } 

EvtTensor3C Evt3Rank3C::cont1 ( const EvtVector3C v  )  const

Definition at line 190 of file Evt3Rank3C.cc.

References genRecEmupikp::i, t, subSeperate::temp, and v.

00190                                                         {
00191   EvtTensor3C temp;
00192   
00193   int i,k;
00194   
00195   for(i=0;i<3;i++){
00196     for(k=0;k<3;k++){
00197       temp.set(i,k,t[0][i][k]*v.get(0)+t[1][i][k]*v.get(1)
00198              +t[2][i][k]*v.get(2));
00199     }
00200   }
00201   return temp;
00202 } 

EvtTensor3C Evt3Rank3C::cont2 ( const EvtVector3R v  )  const

Definition at line 249 of file Evt3Rank3C.cc.

References genRecEmupikp::i, t, subSeperate::temp, and v.

00249                                                         {
00250   EvtTensor3C temp;
00251   
00252   int i,k;
00253   
00254   for(i=0;i<3;i++){
00255     for(k=0;k<3;k++){
00256       temp.set(i,k,t[i][0][k]*v.get(0)+t[i][1][k]*v.get(1)
00257              +t[i][2][k]*v.get(2));
00258     }
00259   }
00260   return temp;
00261 } 

EvtTensor3C Evt3Rank3C::cont2 ( const EvtVector3C v  )  const

Definition at line 205 of file Evt3Rank3C.cc.

References genRecEmupikp::i, t, subSeperate::temp, and v.

00205                                                         {
00206   EvtTensor3C temp;
00207   
00208   int i,k;
00209   
00210   for(i=0;i<3;i++){
00211     for(k=0;k<3;k++){
00212       temp.set(i,k,t[i][0][k]*v.get(0)+t[i][1][k]*v.get(1)
00213              +t[i][2][k]*v.get(2));
00214     }
00215   }
00216   return temp;
00217 } 

EvtTensor3C Evt3Rank3C::cont3 ( const EvtVector3R v  )  const

Definition at line 264 of file Evt3Rank3C.cc.

References genRecEmupikp::i, t, subSeperate::temp, and v.

00264                                                         {
00265   EvtTensor3C temp;
00266   
00267   int i,k;
00268   
00269   for(i=0;i<3;i++){
00270     for(k=0;k<3;k++){
00271       temp.set(i,k,t[i][k][0]*v.get(0)+t[i][k][1]*v.get(1)
00272              +t[i][k][2]*v.get(2));
00273     }
00274   }
00275   return temp;
00276 } 

EvtTensor3C Evt3Rank3C::cont3 ( const EvtVector3C v  )  const

Definition at line 220 of file Evt3Rank3C.cc.

References genRecEmupikp::i, t, subSeperate::temp, and v.

00220                                                         {
00221   EvtTensor3C temp;
00222   
00223   int i,k;
00224   
00225   for(i=0;i<3;i++){
00226     for(k=0;k<3;k++){
00227       temp.set(i,k,t[i][k][0]*v.get(0)+t[i][k][1]*v.get(1)
00228              +t[i][k][2]*v.get(2));
00229     }
00230   }
00231   return temp;
00232 } 

void Evt3Rank3C::dump (  )  const

Definition at line 103 of file Evt3Rank3C.cc.

References genRecEmupikp::i, Bes_Common::INFO, ganga-rec::j, report(), and t.

00103                             {
00104   int i,j,k;
00105   for(k=0;k<3;k++){
00106     for(i=0;i<3;i++){
00107       for(j=0;j<3;j++){
00108         report(INFO,"EvtGen") <<t[k][i][j];
00109       }
00110       report(INFO,"EvtGen") << "\n";
00111     }
00112   }
00113 }

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

Definition at line 117 of file Evt3Rank3C.hh.

References t.

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

00117                                                                {
00118    return t[i][j][k];
00119 }

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

Definition at line 146 of file Evt3Rank3C.cc.

References genRecEmupikp::i, ganga-rec::j, and t.

00146                                                      {
00147 
00148   int i,j,k;
00149   
00150   for (i=0;i<3;i++) {
00151     for (j=0;j<3;j++) {
00152       for (k=0;k<3;k++) {
00153         t[i][j][k]*=c;
00154       }
00155     }
00156   }
00157   return *this;
00158 }

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

Definition at line 160 of file Evt3Rank3C.cc.

References genRecEmupikp::i, ganga-rec::j, and t.

00160                                                 {
00161   int i,j,k;
00162   
00163   for (i=0;i<3;i++) {
00164     for (j=0;j<3;j++) {
00165       for (k=0;k<3;k++) {
00166         t[i][j][k]*=EvtComplex(c);
00167       }
00168     }
00169   }
00170 
00171   return *this;
00172 
00173 }

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

Definition at line 115 of file Evt3Rank3C.cc.

References get(), genRecEmupikp::i, ganga-rec::j, and t.

00115                                                       {
00116   
00117   int i,j,k;
00118   
00119   for (i=0;i<3;i++) {
00120     for (j=0;j<3;j++) {
00121       for (k=0;k<3;k++) {
00122         t[i][j][k]+=t2.get(i,j,k);
00123       }
00124     }
00125   }
00126   return *this;
00127 }

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

Definition at line 129 of file Evt3Rank3C.cc.

References get(), genRecEmupikp::i, ganga-rec::j, and t.

00129                                                        {
00130 
00131   int i,j,k;
00132   
00133   for (i=0;i<3;i++) {
00134     for (j=0;j<3;j++) {
00135       for (k=0;k<3;k++) {
00136         t[i][j][k]-=t2.get(i,j,k);
00137       }
00138     }
00139   }
00140 
00141   return *this;
00142 
00143 }

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

Definition at line 48 of file Evt3Rank3C.cc.

References genRecEmupikp::i, ganga-rec::j, and t.

00048                                                       {
00049   int i,j,k;
00050   
00051   for(i=0;i<3;i++) {
00052     for(j=0;j<3;j++) {
00053       for(k=0;k<3;k++) {
00054         t[i][j][k] = t1.t[i][j][k];
00055       }
00056     }
00057   }
00058   return *this;
00059 }

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

Definition at line 113 of file Evt3Rank3C.hh.

References t.

00113                                                                 {
00114    t[i][j][k]=c;
00115 }

void Evt3Rank3C::zero (  ) 

Definition at line 77 of file Evt3Rank3C.cc.

References genRecEmupikp::i, ganga-rec::j, and t.

00077                      {
00078   int i,j,k;
00079   for(i=0;i<3;i++){
00080     for(j=0;j<3;j++){
00081       for(k=0;k<3;k++){
00082         t[i][j][k]=EvtComplex(0.0,0.0);
00083       }
00084     }
00085   }
00086 }


Friends And Related Function Documentation

Evt3Rank3C conj ( const Evt3Rank3C t2  )  [friend]

Definition at line 175 of file Evt3Rank3C.cc.

00175                                       { 
00176   Evt3Rank3C temp;
00177   
00178   int i,j,k;
00179 
00180   for(i=0;i<3;i++){ 
00181     for(j=0;j<3;j++){ 
00182       for(k=0;k<3;k++){ 
00183         temp.set(i,j,k,::conj((t2.get(i,j,k))));
00184       }
00185     }
00186   }
00187   return temp;
00188 }

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

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

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

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

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

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

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


Member Data Documentation

EvtComplex Evt3Rank3C::t[3][3][3] [private]

Definition at line 84 of file Evt3Rank3C.hh.

Referenced by conj(), cont1(), cont2(), cont3(), dump(), Evt3Rank3C(), get(), operator *=(), operator+=(), operator-=(), operator=(), set(), and zero().


Generated on Tue Nov 29 23:18:51 2016 for BOSS_7.0.2 by  doxygen 1.4.7