BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesVectorErr Class Reference

#include <BesVectorErr.h>

Inheritance diagram for BesVectorErr:

Public Types

enum  PolarCoordinateIndex {
  Rho = 0 , Theta = 1 , Phi = 2 , NUM_PCOORDINATES = 3 ,
  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 ,
  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 ,
  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 ,
  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 ,
  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 ,
  C_Rho = 0 , C_Zeta = 1 , C_Phi = 2 , NUM_CCOORDINATES = 3
}

Public Member Functions

 BesVectorErr ()
 BesVectorErr (const Hep3Vector &p)
 BesVectorErr (const Hep3Vector &p, const BesError &covMat)
 BesVectorErr (const BesVectorErr &v)
BesVectorErroperator= (const BesVectorErr &v)
BesVectorErr operator- ()
BesVectorErroperator+= (const BesVectorErr &v)
BesVectorErroperator-= (const BesVectorErr &v)
double determineChisq (const Hep3Vector &refVector) const
const BesErrorcovMatrix () const
BesError covRTPMatrix () const
BesError covRZPMatrix () const
void setCovMatrix (const BesError &v)
 BesVectorErr ()
 BesVectorErr (const Hep3Vector &p)
 BesVectorErr (const Hep3Vector &p, const BesError &covMat)
 BesVectorErr (const BesVectorErr &v)
BesVectorErroperator= (const BesVectorErr &v)
BesVectorErr operator- ()
BesVectorErroperator+= (const BesVectorErr &v)
BesVectorErroperator-= (const BesVectorErr &v)
double determineChisq (const Hep3Vector &refVector) const
const BesErrorcovMatrix () const
BesError covRTPMatrix () const
BesError covRZPMatrix () const
void setCovMatrix (const BesError &v)
 BesVectorErr ()
 BesVectorErr (const Hep3Vector &p)
 BesVectorErr (const Hep3Vector &p, const BesError &covMat)
 BesVectorErr (const BesVectorErr &v)
BesVectorErroperator= (const BesVectorErr &v)
BesVectorErr operator- ()
BesVectorErroperator+= (const BesVectorErr &v)
BesVectorErroperator-= (const BesVectorErr &v)
double determineChisq (const Hep3Vector &refVector) const
const BesErrorcovMatrix () const
BesError covRTPMatrix () const
BesError covRZPMatrix () const
void setCovMatrix (const BesError &v)

Detailed Description

Member Enumeration Documentation

◆ CylindricalCoordinateIndex [1/3]

◆ CylindricalCoordinateIndex [2/3]

Enumerator
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 

Definition at line 44 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

44{ C_Rho = 0, C_Zeta = 1, C_Phi = 2, NUM_CCOORDINATES = 3 };

◆ CylindricalCoordinateIndex [3/3]

Enumerator
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 

Definition at line 44 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

44{ C_Rho = 0, C_Zeta = 1, C_Phi = 2, NUM_CCOORDINATES = 3 };

◆ PolarCoordinateIndex [1/3]

◆ PolarCoordinateIndex [2/3]

Enumerator
Rho 
Theta 
Phi 
NUM_PCOORDINATES 
Rho 
Theta 
Phi 
NUM_PCOORDINATES 
Rho 
Theta 
Phi 
NUM_PCOORDINATES 

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

42{ Rho = 0, Theta = 1, Phi = 2, NUM_PCOORDINATES = 3 };

◆ PolarCoordinateIndex [3/3]

Enumerator
Rho 
Theta 
Phi 
NUM_PCOORDINATES 
Rho 
Theta 
Phi 
NUM_PCOORDINATES 
Rho 
Theta 
Phi 
NUM_PCOORDINATES 

Definition at line 42 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

42{ Rho = 0, Theta = 1, Phi = 2, NUM_PCOORDINATES = 3 };

Constructor & Destructor Documentation

◆ BesVectorErr() [1/12]

BesVectorErr::BesVectorErr ( )
inline

Definition at line 46 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

46: Hep3Vector(), _covMatrix( NUM_COORDINATES ) {}

Referenced by BesVectorErr(), operator+=(), operator-(), operator-=(), and operator=().

◆ BesVectorErr() [2/12]

BesVectorErr::BesVectorErr ( const Hep3Vector & p)
inline

Definition at line 49 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

49: Hep3Vector( p ), _covMatrix( NUM_COORDINATES ) {}

◆ BesVectorErr() [3/12]

BesVectorErr::BesVectorErr ( const Hep3Vector & p,
const BesError & covMat )
inline

Definition at line 50 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

51 : Hep3Vector( p ), _covMatrix( NUM_COORDINATES ) {
52 _covMatrix = covMat;
53 }

◆ BesVectorErr() [4/12]

BesVectorErr::BesVectorErr ( const BesVectorErr & v)
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

56: Hep3Vector( v ), _covMatrix( v.covMatrix() ) {}
**********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

◆ BesVectorErr() [5/12]

BesVectorErr::BesVectorErr ( )
inline

Definition at line 46 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

46: Hep3Vector(), _covMatrix( NUM_COORDINATES ) {}

◆ BesVectorErr() [6/12]

BesVectorErr::BesVectorErr ( const Hep3Vector & p)
inline

Definition at line 49 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

49: Hep3Vector( p ), _covMatrix( NUM_COORDINATES ) {}

◆ BesVectorErr() [7/12]

BesVectorErr::BesVectorErr ( const Hep3Vector & p,
const BesError & covMat )
inline

Definition at line 50 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

51 : Hep3Vector( p ), _covMatrix( NUM_COORDINATES ) {
52 _covMatrix = covMat;
53 }

◆ BesVectorErr() [8/12]

BesVectorErr::BesVectorErr ( const BesVectorErr & v)
inline

Definition at line 56 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

56: Hep3Vector( v ), _covMatrix( v.covMatrix() ) {}

◆ BesVectorErr() [9/12]

BesVectorErr::BesVectorErr ( )
inline

Definition at line 46 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

46: Hep3Vector(), _covMatrix( NUM_COORDINATES ) {}

◆ BesVectorErr() [10/12]

BesVectorErr::BesVectorErr ( const Hep3Vector & p)
inline

Definition at line 49 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

49: Hep3Vector( p ), _covMatrix( NUM_COORDINATES ) {}

◆ BesVectorErr() [11/12]

BesVectorErr::BesVectorErr ( const Hep3Vector & p,
const BesError & covMat )
inline

Definition at line 50 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

51 : Hep3Vector( p ), _covMatrix( NUM_COORDINATES ) {
52 _covMatrix = covMat;
53 }

◆ BesVectorErr() [12/12]

BesVectorErr::BesVectorErr ( const BesVectorErr & v)
inline

Definition at line 56 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

56: Hep3Vector( v ), _covMatrix( v.covMatrix() ) {}

Member Function Documentation

◆ covMatrix() [1/3]

◆ covMatrix() [2/3]

const BesError & BesVectorErr::covMatrix ( ) const
inline

Definition at line 110 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

110{ return _covMatrix; }

◆ covMatrix() [3/3]

const BesError & BesVectorErr::covMatrix ( ) const
inline

Definition at line 110 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

110{ return _covMatrix; }

◆ covRTPMatrix() [1/3]

BesError BesVectorErr::covRTPMatrix ( ) const

Definition at line 55 of file BesVectorErr.cxx.

55 {
56 // protect against 0's
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 );
61 DifArray pars( 3, NUM_PCOORDINATES );
62 pars[Rho] = sqrt( xDF * xDF + yDF * yDF + zDF * zDF );
63 pars[Phi] = atan2( yDF, xDF );
64 pars[Theta] = acos( zDF / pars[Rho] );
65 return covMatrix().similarity( pars.jacobian() );
66}
Double_t x[10]
BesError similarity(const HepRotation &rot) const
Definition BesError.cxx:49

◆ covRTPMatrix() [2/3]

BesError BesVectorErr::covRTPMatrix ( ) const

◆ covRTPMatrix() [3/3]

BesError BesVectorErr::covRTPMatrix ( ) const

◆ covRZPMatrix() [1/3]

BesError BesVectorErr::covRZPMatrix ( ) const

Definition at line 68 of file BesVectorErr.cxx.

68 {
69 // protect against 0's
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 );
74 DifArray pars( 3, NUM_CCOORDINATES );
75 pars[C_Rho] = sqrt( xDF * xDF + yDF * yDF );
76 pars[C_Phi] = atan2( yDF, xDF );
77 pars[C_Zeta] = zDF;
78 return covMatrix().similarity( pars.jacobian() );
79}

◆ covRZPMatrix() [2/3]

BesError BesVectorErr::covRZPMatrix ( ) const

◆ covRZPMatrix() [3/3]

BesError BesVectorErr::covRZPMatrix ( ) const

◆ determineChisq() [1/3]

double BesVectorErr::determineChisq ( const Hep3Vector & refVector) const

Definition at line 81 of file BesVectorErr.cxx.

81 {
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 );
87}

◆ determineChisq() [2/3]

double BesVectorErr::determineChisq ( const Hep3Vector & refVector) const

◆ determineChisq() [3/3]

double BesVectorErr::determineChisq ( const Hep3Vector & refVector) const

◆ operator+=() [1/3]

BesVectorErr & BesVectorErr::operator+= ( const BesVectorErr & v)
inline

Definition at line 76 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

76 {
77 Hep3Vector::operator+=( v );
78 _covMatrix += v.covMatrix();
79 return *this;
80 }

◆ operator+=() [2/3]

BesVectorErr & BesVectorErr::operator+= ( const BesVectorErr & v)
inline

Definition at line 76 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

76 {
77 Hep3Vector::operator+=( v );
78 _covMatrix += v.covMatrix();
79 return *this;
80 }

◆ operator+=() [3/3]

BesVectorErr & BesVectorErr::operator+= ( const BesVectorErr & v)
inline

Definition at line 76 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

76 {
77 Hep3Vector::operator+=( v );
78 _covMatrix += v.covMatrix();
79 return *this;
80 }

◆ operator-() [1/3]

BesVectorErr BesVectorErr::operator- ( )
inline

Definition at line 71 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

71 {
72 Hep3Vector t = *this;
73 return BesVectorErr( -t, _covMatrix ); // _covMatrix remains unaltered
74 }
int t()
Definition t.c:1

◆ operator-() [2/3]

BesVectorErr BesVectorErr::operator- ( )
inline

Definition at line 71 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

71 {
72 Hep3Vector t = *this;
73 return BesVectorErr( -t, _covMatrix ); // _covMatrix remains unaltered
74 }

◆ operator-() [3/3]

BesVectorErr BesVectorErr::operator- ( )
inline

Definition at line 71 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

71 {
72 Hep3Vector t = *this;
73 return BesVectorErr( -t, _covMatrix ); // _covMatrix remains unaltered
74 }

◆ operator-=() [1/3]

BesVectorErr & BesVectorErr::operator-= ( const BesVectorErr & v)
inline

Definition at line 82 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

82 {
83 Hep3Vector::operator-=( v );
84 _covMatrix += v.covMatrix();
85 return *this;
86 }

◆ operator-=() [2/3]

BesVectorErr & BesVectorErr::operator-= ( const BesVectorErr & v)
inline

Definition at line 82 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

82 {
83 Hep3Vector::operator-=( v );
84 _covMatrix += v.covMatrix();
85 return *this;
86 }

◆ operator-=() [3/3]

BesVectorErr & BesVectorErr::operator-= ( const BesVectorErr & v)
inline

Definition at line 82 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

82 {
83 Hep3Vector::operator-=( v );
84 _covMatrix += v.covMatrix();
85 return *this;
86 }

◆ operator=() [1/3]

BesVectorErr & BesVectorErr::operator= ( const BesVectorErr & v)
inline

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

62 {
63 if ( this != &v )
64 {
65 Hep3Vector::operator=( v );
66 _covMatrix = v.covMatrix();
67 }
68 return *this;
69 }

◆ operator=() [2/3]

BesVectorErr & BesVectorErr::operator= ( const BesVectorErr & v)
inline

Definition at line 62 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

62 {
63 if ( this != &v )
64 {
65 Hep3Vector::operator=( v );
66 _covMatrix = v.covMatrix();
67 }
68 return *this;
69 }

◆ operator=() [3/3]

BesVectorErr & BesVectorErr::operator= ( const BesVectorErr & v)
inline

Definition at line 62 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

62 {
63 if ( this != &v )
64 {
65 Hep3Vector::operator=( v );
66 _covMatrix = v.covMatrix();
67 }
68 return *this;
69 }

◆ setCovMatrix() [1/3]

void BesVectorErr::setCovMatrix ( const BesError & v)
inline

Definition at line 120 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcRecoUtil/BesVectorErr.h.

120{ _covMatrix = v; }

Referenced by operator>>().

◆ setCovMatrix() [2/3]

void BesVectorErr::setCovMatrix ( const BesError & v)
inline

Definition at line 120 of file InstallArea/x86_64-el9-gcc13-opt/include/MdcRecoUtil/BesVectorErr.h.

120{ _covMatrix = v; }

◆ setCovMatrix() [3/3]

void BesVectorErr::setCovMatrix ( const BesError & v)
inline

Definition at line 120 of file Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/BesVectorErr.h.

120{ _covMatrix = v; }

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