//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package developed jointly // for the BaBar and CLEO collaborations. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Information: See EvtGen/COPYRIGHT // Copyright (C) 1998 Caltech, UCSB // // Module: Evt3Rank3C.cc // // Description: Implementation of complex 3Rank 3D tensors. // // Modification history: // // RYD September 14, 1996 Module created // //------------------------------------------------------------------------ #include "EvtGenBase/EvtPatches.hh" #include #include #include "EvtGenBase/Evt3Rank3C.hh" #include "EvtGenBase/EvtComplex.hh" #include "EvtGenBase/EvtVector3C.hh" #include "EvtGenBase/EvtTensor3C.hh" #include "EvtGenBase/EvtReport.hh" Evt3Rank3C::Evt3Rank3C( const Evt3Rank3C& t1 ) { int i,j,k; for(i=0;i<3;i++) { for(j=0;j<3;j++) { for(k=0;k<3;j++) { t[i][j][k] = t1.t[i][j][k]; } } } } Evt3Rank3C::~Evt3Rank3C() { } Evt3Rank3C& Evt3Rank3C::operator=(const Evt3Rank3C& t1) { int i,j,k; for(i=0;i<3;i++) { for(j=0;j<3;j++) { for(k=0;k<3;k++) { t[i][j][k] = t1.t[i][j][k]; } } } return *this; } Evt3Rank3C Evt3Rank3C::conj() const { Evt3Rank3C temp; int i,j,k; for(i=0;i<3;i++) { for(j=0;j<3;j++) { for(k=0;k<3;k++) { temp.set(i,j,k,::conj(t[i][j][k])); } } } return temp; } void Evt3Rank3C::zero(){ int i,j,k; for(i=0;i<3;i++){ for(j=0;j<3;j++){ for(k=0;k<3;k++){ t[i][j][k]=EvtComplex(0.0,0.0); } } } } Evt3Rank3C::Evt3Rank3C(){ int i,j,k; for(i=0;i<3;i++){ for(j=0;j<3;j++){ for(k=0;k<3;k++){ t[i][j][k]=EvtComplex(0.0,0.0); } } } } std::ostream& operator<<(std::ostream& s, const Evt3Rank3C& t2){ int i,j,k; for(k=0;k<3;k++){ for(i=0;i<3;i++){ for(j=0;j<3;j++){ report(INFO,"EvtGen") <