CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
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 &real, const EvtSpinAmp &cont)
 
EvtSpinAmp operator* (const EvtSpinAmp &cont, const EvtComplex &real)
 
EvtSpinAmp operator/ (const EvtSpinAmp &cont, const EvtComplex &real)
 

Function Documentation

◆ operator*() [1/2]

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

Definition at line 20 of file 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}
double real(const EvtComplex &c)
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 EvtSpinAmp.cc.

37{
38 return real*cont;
39}

◆ operator/()

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

Definition at line 22 of file 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}