BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSpinAmp.hh File Reference
#include "EvtGenBase/EvtSpinType.hh"
#include "EvtGenBase/EvtComplex.hh"
#include <vector>
#include <cstdarg>

Go to the source code of this file.

Classes

class  EvtSpinAmp
 

Functions

EvtSpinAmp operator* (const EvtComplex &, const EvtSpinAmp &)
 
EvtSpinAmp operator* (const EvtSpinAmp &, const EvtComplex &)
 
EvtSpinAmp operator/ (const EvtSpinAmp &, const EvtComplex &)
 

Function Documentation

◆ operator*() [1/2]

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

Definition at line 20 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSpinAmp.cc.

26{
27 EvtSpinAmp ret( cont );
28
29 for( int i=0; i<ret._elem.size(); ++i ) {
30 ret._elem[i] *= real;
31 }
32
33 return ret;
34}
EvtComplex cont(const EvtTensor4C &t1, const EvtTensor4C &t2)

◆ operator*() [2/2]

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

Definition at line 21 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSpinAmp.cc.

37{
38 return real*cont;
39}

◆ operator/()

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

Definition at line 22 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenBase/EvtSpinAmp.cc.

42{
43 EvtSpinAmp ret( cont );
44
45 for( int i=0; i<ret._elem.size(); ++i ) {
46 ret._elem[i] /= real;
47 }
48
49 return ret;
50}