BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
BesVectorErr.cxx File Reference
#include <float.h>
#include <iostream>
#include "MdcRecoUtil/BesVectorErr.h"
#include "MdcRecoUtil/DifNumber.h"
#include "MdcRecoUtil/DifArray.h"

Go to the source code of this file.

Functions

BesVectorErr operator+ (const BesVectorErr &v, const BesVectorErr &w)
 
BesVectorErr operator- (const BesVectorErr &v, const BesVectorErr &w)
 
BesVectorErr operator* (const BesVectorErr &p, double a)
 
BesVectorErr operator* (double a, const BesVectorErr &p)
 
ostream & operator<< (ostream &stream, const BesVectorErr &verr)
 
istream & operator>> (istream &stream, BesVectorErr &verr)
 

Function Documentation

◆ operator*() [1/2]

BesVectorErr operator* ( const BesVectorErr p,
double  a 
)

Definition at line 105 of file BesVectorErr.cxx.

105 {
106 BesVectorErr ve(Hep3Vector(a*p.x(), a*p.y(), a*p.z()),
107 (p.covMatrix()*a*a));
108 return ve;
109}

◆ operator*() [2/2]

BesVectorErr operator* ( double  a,
const BesVectorErr p 
)

Definition at line 111 of file BesVectorErr.cxx.

111 {
112 BesVectorErr ve(Hep3Vector(a*p.x(), a*p.y(), a*p.z()),
113 (p.covMatrix()*a*a));
114 return ve;
115}

◆ operator+()

BesVectorErr operator+ ( const BesVectorErr v,
const BesVectorErr w 
)

Definition at line 92 of file BesVectorErr.cxx.

92 {
93 BesVectorErr ve(Hep3Vector(v.x()+w.x(),v.y()+w.y(),v.z()+w.z()),
94 (v.covMatrix()+w.covMatrix()));
95 return ve;
96}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35

◆ operator-()

BesVectorErr operator- ( const BesVectorErr v,
const BesVectorErr w 
)

Definition at line 98 of file BesVectorErr.cxx.

98 {
99 BesVectorErr ve(Hep3Vector(v.x()-w.x(),v.y()-w.y(),v.z()-w.z()),
100 (v.covMatrix()+w.covMatrix()));
101 return ve;
102}

◆ operator<<()

ostream & operator<< ( ostream &  stream,
const BesVectorErr verr 
)

Definition at line 118 of file BesVectorErr.cxx.

118 {
119 stream << (const Hep3Vector&)verr
120 << ", " << verr.covMatrix();
121
122 return stream;
123}

◆ operator>>()

istream & operator>> ( istream &  stream,
BesVectorErr verr 
)

Definition at line 125 of file BesVectorErr.cxx.

125 {
126 BesError mat(verr.SIZE);
127 stream >> (Hep3Vector&)verr >> mat;
128 verr.setCovMatrix(mat);
129
130 return stream;
131}