FairRoot/PandaRoot
Public Types | Public Member Functions | Private Attributes | List of all members
RhoVector3Err Class Reference

#include <RhoVector3Err.h>

Inheritance diagram for RhoVector3Err:

Public Types

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

Public Member Functions

 RhoVector3Err ()
 
 RhoVector3Err (const TVector3 &p)
 
 RhoVector3Err (const TVector3 &p, const RhoError &covMat)
 
 RhoVector3Err (const RhoVector3Err &v)
 
virtual ~RhoVector3Err ()
 
RhoVector3Erroperator= (const RhoVector3Err &v)
 
RhoVector3Erroperator- ()
 
RhoVector3Erroperator+= (const RhoVector3Err &v)
 
RhoVector3Erroperator-= (const RhoVector3Err &v)
 
RhoVector3ErrTransform (const TRotation &rot)
 
Double_t DetermineChisq (const TVector3 &refVector)
 
const RhoErrorCovMatrix () const
 
void SetCovMatrix (const RhoError &v)
 

Private Attributes

RhoError fCovMatrix
 

Detailed Description

Definition at line 20 of file RhoVector3Err.h.

Member Enumeration Documentation

Enumerator
C_Rho 
C_Zeta 
C_Phi 
NUM_CCOORDINATES 

Definition at line 32 of file RhoVector3Err.h.

Enumerator
Rho 
Theta 
Phi 
NUM_PCOORDINATES 

Definition at line 25 of file RhoVector3Err.h.

Constructor & Destructor Documentation

RhoVector3Err::RhoVector3Err ( )

Definition at line 28 of file RhoVector3Err.cxx.

28 : TVector3(), fCovMatrix ( 3 ) {}
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
RhoVector3Err::RhoVector3Err ( const TVector3 &  p)

Definition at line 31 of file RhoVector3Err.cxx.

31 : TVector3 ( p ), fCovMatrix ( 3 ) {}
Double_t p
Definition: anasim.C:58
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
RhoVector3Err::RhoVector3Err ( const TVector3 &  p,
const RhoError covMat 
)

Definition at line 32 of file RhoVector3Err.cxx.

References fCovMatrix.

32  : TVector3 ( p ),
33  fCovMatrix ( 3 )
34 {
35  fCovMatrix=covMat;
36 }
Double_t p
Definition: anasim.C:58
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
RhoVector3Err::RhoVector3Err ( const RhoVector3Err v)

Definition at line 39 of file RhoVector3Err.cxx.

39  : TVector3 ( v ),
40  fCovMatrix ( v.CovMatrix() ) {}
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68
virtual RhoVector3Err::~RhoVector3Err ( )
inlinevirtual

Definition at line 49 of file RhoVector3Err.h.

49 {};

Member Function Documentation

const RhoError& RhoVector3Err::CovMatrix ( ) const
inline
Double_t RhoVector3Err::DetermineChisq ( const TVector3 &  refVector)

Definition at line 116 of file RhoVector3Err.cxx.

References RhoError::DetermineChisq(), fCovMatrix, X, Y, and Z.

117 {
118  TVectorD temp ( 3 );
119  temp ( 0 ) = refVector.X()-this->X();
120  temp ( 1 ) = refVector.Y()-this->Y();
121  temp ( 2 ) = refVector.Z()-this->Z();
122  return fCovMatrix.DetermineChisq ( temp );
123 }
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
Double_t DetermineChisq(TVectorD &diff)
Definition: RhoError.cxx:166
double Y
Definition: anaLmdDigi.C:68
double X
Definition: anaLmdDigi.C:68
double Z
Definition: anaLmdDigi.C:68
RhoVector3Err & RhoVector3Err::operator+= ( const RhoVector3Err v)

Definition at line 61 of file RhoVector3Err.cxx.

References CovMatrix(), fCovMatrix, and operator+=().

62 {
64  fCovMatrix += v.CovMatrix();
65  return *this;
66 }
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
friend void operator+=(F32vec1 &a, const F32vec1 &b)
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68
RhoVector3Err & RhoVector3Err::operator- ( )

Definition at line 55 of file RhoVector3Err.cxx.

56 {
57  ( *this ) *= -1.;
58  return *this; // fCovMatrix remains unaltered
59 }
RhoVector3Err & RhoVector3Err::operator-= ( const RhoVector3Err v)

Definition at line 68 of file RhoVector3Err.cxx.

References CovMatrix(), fCovMatrix, and operator-=().

69 {
71  fCovMatrix += v.CovMatrix();
72  return *this;
73 }
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
friend void operator-=(F32vec1 &a, const F32vec1 &b)
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68
RhoVector3Err & RhoVector3Err::operator= ( const RhoVector3Err v)

Definition at line 46 of file RhoVector3Err.cxx.

References CovMatrix(), and fCovMatrix.

47 {
48  if ( this != &v ) {
49  TVector3::operator= ( v );
50  fCovMatrix = v.CovMatrix();
51  }
52  return *this;
53 }
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
const RhoError & CovMatrix() const
Definition: RhoVector3Err.h:68
void RhoVector3Err::SetCovMatrix ( const RhoError v)
inline

Definition at line 80 of file RhoVector3Err.h.

References fCovMatrix, and v.

Referenced by operator>>().

80  {
81  fCovMatrix = v;
82  }
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
__m128 v
Definition: P4_F32vec4.h:4
RhoVector3Err & RhoVector3Err::Transform ( const TRotation &  rot)

Definition at line 75 of file RhoVector3Err.cxx.

References fCovMatrix, and RhoError::Similarity().

76 {
77  TVector3::Transform ( rot );
79  return *this;
80 }
RhoError fCovMatrix
Definition: RhoVector3Err.h:88
RhoError Similarity(const TMatrixD &m1) const
Definition: RhoError.cxx:104
TGeoRotation rot

Member Data Documentation

RhoError RhoVector3Err::fCovMatrix
private

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