BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSpinAmp.hh File Reference
#include "EvtComplex.hh"
#include "EvtSpinType.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 19 of file EvtSpinAmp.cc.

21 {
22 EvtSpinAmp ret( cont );
23
24 for ( int i = 0; i < ret._elem.size(); ++i ) { ret._elem[i] *= real; }
25
26 return ret;
27}
EvtComplex cont(const EvtTensor4C &t1, const EvtTensor4C &t2)

◆ operator*() [2/2]

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

Definition at line 20 of file EvtSpinAmp.cc.

29{ return real * cont; }

◆ operator/()

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

Definition at line 21 of file EvtSpinAmp.cc.

31 {
32 EvtSpinAmp ret( cont );
33
34 for ( int i = 0; i < ret._elem.size(); ++i ) { ret._elem[i] /= real; }
35
36 return ret;
37}