/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtSpinAmp.cc File Reference

#include "EvtGenBase/EvtPatches.hh"
#include "EvtGenBase/EvtReport.hh"
#include "EvtGenBase/EvtSpinAmp.hh"
#include <cstdlib>

Go to the source code of this file.

Functions

std::ostreamoperator<< (std::ostream &os, const EvtSpinAmp &amp)
EvtSpinAmp operator * (const EvtComplex &real, const EvtSpinAmp &cont)
EvtSpinAmp operator * (const EvtSpinAmp &cont, const EvtComplex &real)
EvtSpinAmp operator/ (const EvtSpinAmp &cont, const EvtComplex &real)


Function Documentation

EvtSpinAmp operator * ( const EvtSpinAmp cont,
const EvtComplex real 
)

Definition at line 36 of file EvtSpinAmp.cc.

00037 {
00038     return real*cont;
00039 }

EvtSpinAmp operator * ( const EvtComplex real,
const EvtSpinAmp cont 
)

Definition at line 25 of file EvtSpinAmp.cc.

00026 {
00027     EvtSpinAmp ret( cont );
00028 
00029     for( int i=0; i<ret._elem.size(); ++i ) {
00030         ret._elem[i] *= real;
00031     }
00032 
00033     return ret;
00034 }

EvtSpinAmp operator/ ( const EvtSpinAmp cont,
const EvtComplex real 
)

Definition at line 41 of file EvtSpinAmp.cc.

00042 {
00043     EvtSpinAmp ret( cont );
00044 
00045     for( int i=0; i<ret._elem.size(); ++i ) {
00046         ret._elem[i] /= real;
00047     }
00048 
00049     return ret;
00050 }

std::ostream& operator<< ( std::ostream os,
const EvtSpinAmp amp 
)

Definition at line 9 of file EvtSpinAmp.cc.

References genRecEmupikp::i, EvtSpinAmp::iterate(), and EvtSpinAmp::iterinit().

00010 {
00011     vector<int> index = amp.iterinit();
00012     
00013     os << ":";
00014     do {
00015         os<<"<";
00016         for(int i=0; i<index.size()-1; ++i) {
00017             os<<index[i];
00018         }
00019         os<<index[index.size()-1]<<">"<<amp(index)<<":";
00020     } while( amp.iterate( index ) );
00021 
00022     return os;
00023 }


Generated on Tue Nov 29 23:15:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7