BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
BesPointErr Class Reference

#include <BesPointErr.h>

+ Inheritance diagram for BesPointErr:

Public Types

enum  PolarCoordinateIndex {
  Rho = 0 , Theta = 1 , Phi = 2 , NUM_PCOORDINATES = 3 ,
  Rho = 0 , Theta = 1 , Phi = 2 , NUM_PCOORDINATES = 3
}
 
enum  CylindricalCoordinateIndex {
  C_Rho = 0 , C_Zeta = 1 , C_Phi = 2 , NUM_CCOORDINATES = 3 ,
  C_Rho = 0 , C_Zeta = 1 , C_Phi = 2 , NUM_CCOORDINATES = 3
}
 
enum  PolarCoordinateIndex {
  Rho = 0 , Theta = 1 , Phi = 2 , NUM_PCOORDINATES = 3 ,
  Rho = 0 , Theta = 1 , Phi = 2 , NUM_PCOORDINATES = 3
}
 
enum  CylindricalCoordinateIndex {
  C_Rho = 0 , C_Zeta = 1 , C_Phi = 2 , NUM_CCOORDINATES = 3 ,
  C_Rho = 0 , C_Zeta = 1 , C_Phi = 2 , NUM_CCOORDINATES = 3
}
 

Public Member Functions

 BesPointErr ()
 
 BesPointErr (const HepPoint3D &p)
 
 BesPointErr (const HepPoint3D &p, const BesError &covMat)
 
 BesPointErr (const BesPointErr &v)
 
double determineChisq (const HepPoint3D &diffPoint) const
 
BesError covRTPMatrix () const
 
BesError covRZPMatrix () const
 
const BesErrorcovMatrix () const
 
void setCovMatrix (const BesError &v)
 
 BesPointErr ()
 
 BesPointErr (const HepPoint3D &p)
 
 BesPointErr (const HepPoint3D &p, const BesError &covMat)
 
 BesPointErr (const BesPointErr &v)
 
double determineChisq (const HepPoint3D &diffPoint) const
 
BesError covRTPMatrix () const
 
BesError covRZPMatrix () const
 
const BesErrorcovMatrix () const
 
void setCovMatrix (const BesError &v)
 

Detailed Description

Member Enumeration Documentation

◆ CylindricalCoordinateIndex [1/2]

◆ CylindricalCoordinateIndex [2/2]

Enumerator
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 

Definition at line 53 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/BesPointErr.h.

53 {
54 C_Rho = 0,
55 C_Zeta = 1,
56 C_Phi = 2,
58 };

◆ PolarCoordinateIndex [1/2]

◆ PolarCoordinateIndex [2/2]

Enumerator
Rho 
Theta 
Phi 
NUM_PCOORDINATES 
Rho 
Theta 
Phi 
NUM_PCOORDINATES 

Definition at line 47 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/BesPointErr.h.

47 {
48 Rho = 0,
49 Theta = 1,
50 Phi = 2,
52 };

Constructor & Destructor Documentation

◆ BesPointErr() [1/8]

BesPointErr::BesPointErr ( )
inline

◆ BesPointErr() [2/8]

BesPointErr::BesPointErr ( const HepPoint3D p)
inline

Definition at line 60 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/BesPointErr.h.

60 : HepPoint3D(p),
61 _covMatrix(3) {}

◆ BesPointErr() [3/8]

BesPointErr::BesPointErr ( const HepPoint3D p,
const BesError covMat 
)
inline

Definition at line 62 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/BesPointErr.h.

62 : HepPoint3D(p),
63 _covMatrix(3) { _covMatrix=covMat; }

◆ BesPointErr() [4/8]

BesPointErr::BesPointErr ( const BesPointErr v)
inline

Definition at line 66 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/BesPointErr.h.

66: HepPoint3D(),_covMatrix(3) {*this = v;}
**********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

◆ BesPointErr() [5/8]

BesPointErr::BesPointErr ( )
inline

◆ BesPointErr() [6/8]

BesPointErr::BesPointErr ( const HepPoint3D p)
inline

◆ BesPointErr() [7/8]

BesPointErr::BesPointErr ( const HepPoint3D p,
const BesError covMat 
)
inline

Definition at line 62 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/BesPointErr.h.

62 : HepPoint3D(p),
63 _covMatrix(3) { _covMatrix=covMat; }

◆ BesPointErr() [8/8]

BesPointErr::BesPointErr ( const BesPointErr v)
inline

Definition at line 66 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/BesPointErr.h.

66: HepPoint3D(),_covMatrix(3) {*this = v;}

Member Function Documentation

◆ covMatrix() [1/2]

const BesError & BesPointErr::covMatrix ( ) const
inline

◆ covMatrix() [2/2]

const BesError & BesPointErr::covMatrix ( ) const
inline

◆ covRTPMatrix() [1/2]

BesError BesPointErr::covRTPMatrix ( ) const

Definition at line 83 of file BesPointErr.cxx.

83 {
84 // protect against 0's
85 double xv = x()==0 ? FLT_MIN : x();
86 double yv = y()==0 ? FLT_MIN : y();
87 double zv = z()==0 ? FLT_MIN : z();
88 DifNumber xDF(xv,X+1,3), yDF(yv,Y+1,3), zDF(zv,Z+1,3);
90 pars[Rho] = sqrt(xDF*xDF + yDF*yDF + zDF*zDF);
91 pars[Phi] = atan2(yDF,xDF);
92 pars[Theta] = acos(zDF/pars[Rho]);
93 return covMatrix().similarity(pars.jacobian());
94}
Double_t x[10]
BesError similarity(const HepRotation &rot) const
Definition: BesError.cxx:51

◆ covRTPMatrix() [2/2]

BesError BesPointErr::covRTPMatrix ( ) const

◆ covRZPMatrix() [1/2]

BesError BesPointErr::covRZPMatrix ( ) const

Definition at line 96 of file BesPointErr.cxx.

96 {
97 // protect against 0's
98 double xv = x()==0 ? FLT_MIN : x();
99 double yv = y()==0 ? FLT_MIN : y();
100 double zv = z()==0 ? FLT_MIN : z();
101 DifNumber xDF(xv,X+1,3), yDF(yv,Y+1,3), zDF(zv,Z+1,3);
103 pars[C_Rho] = sqrt(xDF*xDF + yDF*yDF );
104 pars[C_Phi] = atan2(yDF,xDF);
105 pars[C_Zeta] = zDF;
106 return covMatrix().similarity(pars.jacobian());
107}

◆ covRZPMatrix() [2/2]

BesError BesPointErr::covRZPMatrix ( ) const

◆ determineChisq() [1/2]

double BesPointErr::determineChisq ( const HepPoint3D diffPoint) const
inline

Definition at line 68 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/BesPointErr.h.

69 {
70 HepVector temp(3);
71 temp[0] = diffPoint.x()-this->x();
72 temp[1] = diffPoint.y()-this->y();
73 temp[2] = diffPoint.z()-this->z();
74 return _covMatrix.determineChisq(temp);
75 }
double determineChisq(const HepVector &diff) const
Definition: BesError.cxx:109

◆ determineChisq() [2/2]

double BesPointErr::determineChisq ( const HepPoint3D diffPoint) const
inline

Definition at line 68 of file Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/BesPointErr.h.

69 {
70 HepVector temp(3);
71 temp[0] = diffPoint.x()-this->x();
72 temp[1] = diffPoint.y()-this->y();
73 temp[2] = diffPoint.z()-this->z();
74 return _covMatrix.determineChisq(temp);
75 }

◆ setCovMatrix() [1/2]

void BesPointErr::setCovMatrix ( const BesError v)
inline

Definition at line 85 of file InstallArea/include/MdcRecoUtil/MdcRecoUtil/BesPointErr.h.

85{ _covMatrix = v; }

Referenced by operator>>().

◆ setCovMatrix() [2/2]

void BesPointErr::setCovMatrix ( const BesError v)
inline

The documentation for this class was generated from the following files: