Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BesPointErr Class Reference

#include <BesPointErr.h>

List of all members.

Public Types

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

Public Member Functions

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

Private Attributes

BesError _covMatrix


Member Enumeration Documentation

enum BesPointErr::CylindricalCoordinateIndex
 

Enumeration values:
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 
00053                                     {   
00054       C_Rho = 0, 
00055       C_Zeta = 1, 
00056       C_Phi = 2,
00057       NUM_CCOORDINATES = 3
00058     };

enum BesPointErr::CylindricalCoordinateIndex
 

Enumeration values:
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 
00053                                     {   
00054       C_Rho = 0, 
00055       C_Zeta = 1, 
00056       C_Phi = 2,
00057       NUM_CCOORDINATES = 3
00058     };

enum BesPointErr::PolarCoordinateIndex
 

Enumeration values:
Rho 
Theta 
Phi 
NUM_PCOORDINATES 
00047                               {   
00048       Rho = 0, 
00049       Theta = 1, 
00050       Phi = 2,
00051       NUM_PCOORDINATES = 3
00052     };

enum BesPointErr::PolarCoordinateIndex
 

Enumeration values:
Rho 
Theta 
Phi 
NUM_PCOORDINATES 
00047                               {   
00048       Rho = 0, 
00049       Theta = 1, 
00050       Phi = 2,
00051       NUM_PCOORDINATES = 3
00052     };


Constructor & Destructor Documentation

BesPointErr::BesPointErr  )  [inline]
 

00059 : HepPoint3D(), _covMatrix(3)           {}

BesPointErr::BesPointErr const HepPoint3D p  )  [inline]
 

00060                                      : HepPoint3D(p),
00061                                        _covMatrix(3)                                            {}

BesPointErr::BesPointErr const HepPoint3D p,
const BesError covMat
[inline]
 

00062                                                              : HepPoint3D(p),
00063                                                                _covMatrix(3)                                            { _covMatrix=covMat; }

BesPointErr::BesPointErr const BesPointErr v  )  [inline]
 

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

BesPointErr::BesPointErr  )  [inline]
 

00059 : HepPoint3D(), _covMatrix(3)           {}

BesPointErr::BesPointErr const HepPoint3D p  )  [inline]
 

00060                                      : HepPoint3D(p),
00061                                        _covMatrix(3)                                            {}

BesPointErr::BesPointErr const HepPoint3D p,
const BesError covMat
[inline]
 

00062                                                              : HepPoint3D(p),
00063                                                                _covMatrix(3)                                            { _covMatrix=covMat; }

BesPointErr::BesPointErr const BesPointErr v  )  [inline]
 

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


Member Function Documentation

const BesError& BesPointErr::covMatrix  )  const [inline]
 

00084 { return _covMatrix; }

const BesError& BesPointErr::covMatrix  )  const [inline]
 

00084 { return _covMatrix; }

BesError BesPointErr::covRTPMatrix  )  const
 

BesError BesPointErr::covRTPMatrix  )  const
 

00083                                         {
00084   // protect against 0's
00085   double xv = x()==0 ?  FLT_MIN : x();
00086   double yv = y()==0 ?  FLT_MIN : y();
00087   double zv = z()==0 ?  FLT_MIN : z();
00088   DifNumber xDF(xv,X+1,3), yDF(yv,Y+1,3), zDF(zv,Z+1,3);
00089   DifArray pars(3,NUM_PCOORDINATES);
00090   pars[Rho]   =  sqrt(xDF*xDF + yDF*yDF + zDF*zDF);
00091   pars[Phi]   = atan2(yDF,xDF);
00092   pars[Theta] = acos(zDF/pars[Rho]);
00093   return covMatrix().similarity(pars.jacobian());
00094 }

BesError BesPointErr::covRZPMatrix  )  const
 

BesError BesPointErr::covRZPMatrix  )  const
 

00096                                         {
00097   // protect against 0's
00098   double xv = x()==0 ?  FLT_MIN : x();
00099   double yv = y()==0 ?  FLT_MIN : y();
00100   double zv = z()==0 ?  FLT_MIN : z();
00101   DifNumber xDF(xv,X+1,3), yDF(yv,Y+1,3), zDF(zv,Z+1,3);
00102   DifArray pars(3,NUM_CCOORDINATES);
00103   pars[C_Rho]   =  sqrt(xDF*xDF + yDF*yDF );
00104   pars[C_Phi]   = atan2(yDF,xDF);
00105   pars[C_Zeta] =  zDF;
00106   return covMatrix().similarity(pars.jacobian());
00107 }

double BesPointErr::determineChisq const HepPoint3D diffPoint  )  const [inline]
 

00069     {
00070       HepVector temp(3);
00071       temp[0] = diffPoint.x()-this->x();
00072       temp[1] = diffPoint.y()-this->y();
00073       temp[2] = diffPoint.z()-this->z();
00074       return _covMatrix.determineChisq(temp);
00075     }

double BesPointErr::determineChisq const HepPoint3D diffPoint  )  const [inline]
 

00069     {
00070       HepVector temp(3);
00071       temp[0] = diffPoint.x()-this->x();
00072       temp[1] = diffPoint.y()-this->y();
00073       temp[2] = diffPoint.z()-this->z();
00074       return _covMatrix.determineChisq(temp);
00075     }

void BesPointErr::setCovMatrix const BesError v  )  [inline]
 

00085 { _covMatrix = v; }

void BesPointErr::setCovMatrix const BesError v  )  [inline]
 

00085 { _covMatrix = v; }


Member Data Documentation

BesError BesPointErr::_covMatrix [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:53:04 2011 for BOSS6.5.5 by  doxygen 1.3.9.1