CMS 3D CMS Logo

ExtendedPerigeeTrajectoryError Class Reference

#include <RecoVertex/KinematicFitPrimitives/interface/ExtendedPerigeeTrajectoryError.h>

List of all members.

Public Member Functions

const AlgebraicSymMatrix66covarianceMatrix () const
 ExtendedPerigeeTrajectoryError (const AlgebraicSymMatrix66 &covariance)
 ExtendedPerigeeTrajectoryError ()
bool isValid () const
 Access methods.
bool weightIsAvailable () const
const AlgebraicSymMatrix66weightMatrix () const

Private Attributes

AlgebraicSymMatrix66 cov
bool vl
AlgebraicSymMatrix66 weight
bool weightAvailable


Detailed Description

Definition at line 6 of file ExtendedPerigeeTrajectoryError.h.


Constructor & Destructor Documentation

ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError (  )  [inline]

Definition at line 9 of file ExtendedPerigeeTrajectoryError.h.

00009                                  : weightAvailable(false),vl(false)
00010  {}

ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError ( const AlgebraicSymMatrix66 covariance  )  [inline]

Definition at line 12 of file ExtendedPerigeeTrajectoryError.h.

00012                                                                        :
00013                                cov(covariance),weightAvailable(false),
00014                                vl(true)
00015  {}


Member Function Documentation

const AlgebraicSymMatrix66& ExtendedPerigeeTrajectoryError::covarianceMatrix (  )  const [inline]

Definition at line 28 of file ExtendedPerigeeTrajectoryError.h.

References cov.

Referenced by ParticleKinematicLinearizedTrackState::predictedStateError().

00029  {return cov;}

bool ExtendedPerigeeTrajectoryError::isValid ( void   )  const [inline]

Access methods.

Definition at line 22 of file ExtendedPerigeeTrajectoryError.h.

References vl.

00023  {return vl;}

bool ExtendedPerigeeTrajectoryError::weightIsAvailable (  )  const [inline]

Definition at line 25 of file ExtendedPerigeeTrajectoryError.h.

References weightAvailable.

Referenced by weightMatrix().

00026  {return weightAvailable;}

const AlgebraicSymMatrix66& ExtendedPerigeeTrajectoryError::weightMatrix ( void   )  const [inline]

Definition at line 31 of file ExtendedPerigeeTrajectoryError.h.

References cov, weight, weightAvailable, and weightIsAvailable().

Referenced by ParticleKinematicLinearizedTrackState::predictedStateMomentumError(), and ParticleKinematicLinearizedTrackState::predictedStateWeight().

00032  {
00033   if(! weightIsAvailable())
00034   {
00035    int ifail;
00036 //   cout<<"weight is requested for covariance:"<<cov<<endl;
00037    weight = cov.Inverse(ifail);
00038    if(ifail != 0) throw VertexException("ExtendedPerigeeTrajectoryError::unable to invert covariance matrix"); 
00039    weightAvailable = true;
00040   }
00041   
00042 //  cout<<"and the weight is: "<< weight<<endl;
00043   return weight;
00044  }


Member Data Documentation

AlgebraicSymMatrix66 ExtendedPerigeeTrajectoryError::cov [private]

Definition at line 47 of file ExtendedPerigeeTrajectoryError.h.

Referenced by covarianceMatrix(), and weightMatrix().

bool ExtendedPerigeeTrajectoryError::vl [mutable, private]

Definition at line 50 of file ExtendedPerigeeTrajectoryError.h.

Referenced by isValid().

AlgebraicSymMatrix66 ExtendedPerigeeTrajectoryError::weight [mutable, private]

Definition at line 48 of file ExtendedPerigeeTrajectoryError.h.

Referenced by weightMatrix().

bool ExtendedPerigeeTrajectoryError::weightAvailable [mutable, private]

Definition at line 49 of file ExtendedPerigeeTrajectoryError.h.

Referenced by weightIsAvailable(), and weightMatrix().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:20:34 2009 for CMSSW by  doxygen 1.5.4