BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesPointErr.cxx File Reference
#include "MdcRecoUtil/BesPointErr.h"
#include "MdcRecoUtil/DifArray.h"
#include "MdcRecoUtil/DifNumber.h"
#include <float.h>
#include <stdio.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}
HepGeom::Point3D< double > HepPoint3D
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+() [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 << ", " << verr.covMatrix();
70
71 return stream;
72}

◆ operator>>()

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

Definition at line 74 of file BesPointErr.cxx.

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