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

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 102 of file BesVectorErr.cxx.

102 {
103 BesVectorErr ve( Hep3Vector( a * p.x(), a * p.y(), a * p.z() ), ( p.covMatrix() * a * a ) );
104 return ve;
105}

◆ operator*() [2/2]

BesVectorErr operator* ( double a,
const BesVectorErr & p )

Definition at line 107 of file BesVectorErr.cxx.

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

◆ operator+()

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

Definition at line 89 of file BesVectorErr.cxx.

89 {
90 BesVectorErr ve( Hep3Vector( v.x() + w.x(), v.y() + w.y(), v.z() + w.z() ),
91 ( v.covMatrix() + w.covMatrix() ) );
92 return ve;
93}
double w
**********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 95 of file BesVectorErr.cxx.

95 {
96 BesVectorErr ve( Hep3Vector( v.x() - w.x(), v.y() - w.y(), v.z() - w.z() ),
97 ( v.covMatrix() + w.covMatrix() ) );
98 return ve;
99}

◆ operator<<()

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

Definition at line 112 of file BesVectorErr.cxx.

112 {
113 stream << (const Hep3Vector&)verr << ", " << verr.covMatrix();
114
115 return stream;
116}

◆ operator>>()

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

Definition at line 118 of file BesVectorErr.cxx.

118 {
119 BesError mat( verr.SIZE );
120 stream >> (Hep3Vector&)verr >> mat;
121 verr.setCovMatrix( mat );
122
123 return stream;
124}