BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtVector4C.hh File Reference
#include "EvtComplex.hh"
#include "EvtVector3C.hh"
#include "EvtVector4R.hh"
#include <iosfwd>

Go to the source code of this file.

Classes

class  EvtVector4C

Functions

EvtVector4C operator+ (const EvtVector4C &v1, const EvtVector4C &v2)
EvtVector4C operator- (const EvtVector4C &v1, const EvtVector4C &v2)
EvtVector4C operator* (double d, const EvtVector4C &v2)
EvtVector4C operator* (const EvtComplex &c, const EvtVector4C &v2)
EvtVector4C operator* (const EvtVector4C &v2, const EvtComplex &c)
EvtVector4C operator* (const EvtComplex &c, const EvtVector4R &v2)
EvtComplex operator* (const EvtVector4R &v1, const EvtVector4C &v2)
EvtComplex operator* (const EvtVector4C &v1, const EvtVector4R &v2)
EvtComplex operator* (const EvtVector4C &v1, const EvtVector4C &v2)

Function Documentation

◆ operator*() [1/7]

EvtVector4C operator* ( const EvtComplex & c,
const EvtVector4C & v2 )
inline

Definition at line 157 of file EvtVector4C.hh.

157 {
158
159 return EvtVector4C( v2 ) *= c;
160}

◆ operator*() [2/7]

EvtVector4C operator* ( const EvtComplex & c,
const EvtVector4R & v2 )
inline

Definition at line 167 of file EvtVector4C.hh.

167 {
168
169 return EvtVector4C( c * v2.get( 0 ), c * v2.get( 1 ), c * v2.get( 2 ), c * v2.get( 3 ) );
170}
double get(int i) const

◆ operator*() [3/7]

EvtComplex operator* ( const EvtVector4C & v1,
const EvtVector4C & v2 )
inline

Definition at line 192 of file EvtVector4C.hh.

192 {
193
194 return v1.v[0] * v2.v[0] - v1.v[1] * v2.v[1] - v1.v[2] * v2.v[2] - v1.v[3] * v2.v[3];
195}

◆ operator*() [4/7]

EvtComplex operator* ( const EvtVector4C & v1,
const EvtVector4R & v2 )
inline

Definition at line 186 of file EvtVector4C.hh.

186 {
187
188 return v1.v[0] * v2.get( 0 ) - v1.v[1] * v2.get( 1 ) - v1.v[2] * v2.get( 2 ) -
189 v1.v[3] * v2.get( 3 );
190}

◆ operator*() [5/7]

EvtVector4C operator* ( const EvtVector4C & v2,
const EvtComplex & c )
inline

Definition at line 162 of file EvtVector4C.hh.

162 {
163
164 return EvtVector4C( v2 ) *= c;
165}

◆ operator*() [6/7]

EvtComplex operator* ( const EvtVector4R & v1,
const EvtVector4C & v2 )
inline

Definition at line 180 of file EvtVector4C.hh.

180 {
181
182 return v1.get( 0 ) * v2.v[0] - v1.get( 1 ) * v2.v[1] - v1.get( 2 ) * v2.v[2] -
183 v1.get( 3 ) * v2.v[3];
184}

◆ operator*() [7/7]

EvtVector4C operator* ( double d,
const EvtVector4C & v2 )
inline

Definition at line 152 of file EvtVector4C.hh.

152 {
153
154 return EvtVector4C( v2.v[0] * d, v2.v[1] * d, v2.v[2] * d, v2.v[3] * d );
155}

◆ operator+()

EvtVector4C operator+ ( const EvtVector4C & v1,
const EvtVector4C & v2 )
inline

Definition at line 127 of file EvtVector4C.hh.

127 {
128
129 return EvtVector4C( v1 ) += v2;
130}

◆ operator-()

EvtVector4C operator- ( const EvtVector4C & v1,
const EvtVector4C & v2 )
inline

Definition at line 132 of file EvtVector4C.hh.

132 {
133
134 return EvtVector4C( v1 ) -= v2;
135}