/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/src/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)
ostreamoperator<< (ostream &stream, const BesVectorErr &verr)
istreamoperator>> (istream &stream, BesVectorErr &verr)


Function Documentation

BesVectorErr operator * ( double  a,
const BesVectorErr p 
)

Definition at line 111 of file BesVectorErr.cxx.

References BesVectorErr::covMatrix().

00111                                                            {
00112   BesVectorErr ve(Hep3Vector(a*p.x(), a*p.y(), a*p.z()),
00113                   (p.covMatrix()*a*a));
00114   return ve;
00115 }

BesVectorErr operator * ( const BesVectorErr p,
double  a 
)

Definition at line 105 of file BesVectorErr.cxx.

References BesVectorErr::covMatrix().

00105                                                            {
00106   BesVectorErr ve(Hep3Vector(a*p.x(), a*p.y(), a*p.z()),
00107                   (p.covMatrix()*a*a));
00108   return ve;
00109 }

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

Definition at line 92 of file BesVectorErr.cxx.

References v, and w.

00092                                                                       {
00093     BesVectorErr ve(Hep3Vector(v.x()+w.x(),v.y()+w.y(),v.z()+w.z()),
00094                     (v.covMatrix()+w.covMatrix()));
00095     return ve;
00096 }

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

Definition at line 98 of file BesVectorErr.cxx.

References v, and w.

00098                                                                       {
00099     BesVectorErr ve(Hep3Vector(v.x()-w.x(),v.y()-w.y(),v.z()-w.z()), 
00100                     (v.covMatrix()+w.covMatrix()));
00101     return ve;
00102 }

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

Definition at line 118 of file BesVectorErr.cxx.

References BesVectorErr::covMatrix().

00118                                                                   {
00119   stream << (const Hep3Vector&)verr
00120          << ", " << verr.covMatrix();
00121   
00122   return stream;
00123 }

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

Definition at line 125 of file BesVectorErr.cxx.

References BesVectorErr::setCovMatrix().

00125                                                             {
00126   BesError mat(verr.SIZE);
00127   stream >> (Hep3Vector&)verr >> mat;
00128   verr.setCovMatrix(mat);
00129   
00130   return stream;
00131 }


Generated on Tue Nov 29 23:16:55 2016 for BOSS_7.0.2 by  doxygen 1.4.7