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

Go to the source code of this file.

Functions

BesPointErr operator+ (const BesPointErr &v, const BesVectorErr &w)
 
BesPointErr operator+ (const BesVectorErr &w, const BesPointErr &v)
 
BesPointErr operator- (const BesPointErr &v, const BesVectorErr &w)
 
BesVectorErr operator- (const BesPointErr &v, const BesPointErr &w)
 
ostream & operator<< (ostream &stream, const BesPointErr &verr)
 
istream & operator>> (istream &stream, BesPointErr &verr)
 

Function Documentation

◆ operator+() [1/2]

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

Definition at line 44 of file BesPointErr.cxx.

44 {
45 BesPointErr pe(HepPoint3D(v.x()+w.x(),v.y()+w.y(),v.z()+w.z()),
46 (v.covMatrix()+w.covMatrix()));
47 return pe;
48 }
double w
HepGeom::Point3D< double > HepPoint3D
Definition: Gam4pikp.cxx:37
**********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+() [2/2]

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

Definition at line 50 of file BesPointErr.cxx.

50 {
51 BesPointErr pe(HepPoint3D(v.x()+w.x(),v.y()+w.y(),v.z()+w.z()),
52 (v.covMatrix()+w.covMatrix()));
53 return pe;
54}

◆ operator-() [1/2]

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

Definition at line 62 of file BesPointErr.cxx.

62 {
63 BesVectorErr ve(Hep3Vector(v.x()-w.x(),v.y()-w.y(),v.z()-w.z()),
64 (v.covMatrix()+w.covMatrix()));
65 return ve;
66}

◆ operator-() [2/2]

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

Definition at line 56 of file BesPointErr.cxx.

56 {
57 BesPointErr pe(HepPoint3D(v.x()-w.x(),v.y()-w.y(),v.z()-w.z()),
58 (v.covMatrix()+w.covMatrix()));
59 return pe;
60}

◆ operator<<()

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

Definition at line 68 of file BesPointErr.cxx.

68 {
69 stream << (const HepPoint3D&)verr
70 << ", " << verr.covMatrix();
71
72 return stream;
73}

◆ operator>>()

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

Definition at line 75 of file BesPointErr.cxx.

75 {
76 BesError mat(verr.SIZE);
77 stream >> (HepPoint3D&)verr >> mat;
78 verr.setCovMatrix(mat);
79
80 return stream;
81}