38#include "MdcRecoUtil/BesVectorErr.h"
39#include "MdcRecoUtil/DifArray.h"
40#include "MdcRecoUtil/DifNumber.h"
57 double xv =
x() == 0 ? FLT_MIN :
x();
58 double yv = y() == 0 ? FLT_MIN : y();
59 double zv = z() == 0 ? FLT_MIN : z();
60 DifNumber xDF( xv, X + 1, 3 ), yDF( yv, Y + 1, 3 ), zDF( zv, Z + 1, 3 );
62 pars[
Rho] = sqrt( xDF * xDF + yDF * yDF + zDF * zDF );
63 pars[
Phi] = atan2( yDF, xDF );
64 pars[
Theta] = acos( zDF / pars[
Rho] );
70 double xv =
x() == 0 ? FLT_MIN :
x();
71 double yv = y() == 0 ? FLT_MIN : y();
72 double zv = z() == 0 ? FLT_MIN : z();
73 DifNumber xDF( xv, X + 1, 3 ), yDF( yv, Y + 1, 3 ), zDF( zv, Z + 1, 3 );
75 pars[
C_Rho] = sqrt( xDF * xDF + yDF * yDF );
76 pars[
C_Phi] = atan2( yDF, xDF );
82 HepVector temp( NUM_COORDINATES, 0 );
83 temp[0] = refVector.x() - this->
x();
84 temp[1] = refVector.y() - this->y();
85 temp[2] = refVector.z() - this->z();
86 return _covMatrix.determineChisq( temp );
91 (
v.covMatrix() +
w.covMatrix() ) );
97 (
v.covMatrix() +
w.covMatrix() ) );
113 stream << (
const Hep3Vector&)verr <<
", " << verr.
covMatrix();
120 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
BesError covRZPMatrix() const
const BesError & covMatrix() const
void setCovMatrix(const BesError &v)
double determineChisq(const Hep3Vector &refVector) const
BesError covRTPMatrix() const
HepMatrix jacobian() const