40#include "MdcRecoUtil/BesVectorErr.h"
41#include "MdcRecoUtil/DifNumber.h"
42#include "MdcRecoUtil/DifArray.h"
58 double xv =
x()==0 ? FLT_MIN :
x();
59 double yv = y()==0 ? FLT_MIN : y();
60 double zv = z()==0 ? FLT_MIN : z();
61 DifNumber xDF(xv,X+1,3), yDF(yv,Y+1,3), zDF(zv,Z+1,3);
63 pars[
Rho] = sqrt(xDF*xDF + yDF*yDF + zDF*zDF);
64 pars[
Phi] = atan2(yDF,xDF);
71 double xv =
x()==0 ? FLT_MIN :
x();
72 double yv = y()==0 ? FLT_MIN : y();
73 double zv = z()==0 ? FLT_MIN : z();
74 DifNumber xDF(xv,X+1,3), yDF(yv,Y+1,3), zDF(zv,Z+1,3);
76 pars[
C_Rho] = sqrt(xDF*xDF + yDF*yDF);
77 pars[
C_Phi] = atan2(yDF,xDF);
84 HepVector temp(NUM_COORDINATES, 0);
85 temp[0] = refVector.x()-this->
x();
86 temp[1] = refVector.y()-this->y();
87 temp[2] = refVector.z()-this->z();
94 (
v.covMatrix()+
w.covMatrix()));
100 (
v.covMatrix()+
w.covMatrix()));
119 stream << (
const Hep3Vector&)verr
127 stream >> (Hep3Vector&)verr >> mat;
istream & operator>>(istream &stream, BesVectorErr &verr)
BesVectorErr operator-(const BesVectorErr &v, const BesVectorErr &w)
BesVectorErr operator+(const BesVectorErr &v, const BesVectorErr &w)
BesVectorErr operator*(const BesVectorErr &p, double a)
ostream & operator<<(ostream &stream, const BesVectorErr &verr)
**********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
BesError similarity(const HepRotation &rot) const
double determineChisq(const HepVector &diff) const
BesError covRZPMatrix() const
const BesError & covMatrix() const
void setCovMatrix(const BesError &v)
double determineChisq(const Hep3Vector &refVector) const
BesError covRTPMatrix() const
HepMatrix jacobian() const