test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ExtendedPerigeeTrajectoryError Class Reference

#include <ExtendedPerigeeTrajectoryError.h>

Public Member Functions

const AlgebraicSymMatrix66covarianceMatrix () const
 
 ExtendedPerigeeTrajectoryError ()
 
 ExtendedPerigeeTrajectoryError (const AlgebraicSymMatrix66 &covariance)
 
bool isValid () const
 
bool weightIsAvailable () const
 
const AlgebraicSymMatrix66weightMatrix (int &error) const
 

Private Attributes

AlgebraicSymMatrix66 cov
 
bool vl
 
AlgebraicSymMatrix66 weight
 
bool weightAvailable
 

Detailed Description

Definition at line 7 of file ExtendedPerigeeTrajectoryError.h.

Constructor & Destructor Documentation

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

Member Function Documentation

const AlgebraicSymMatrix66& ExtendedPerigeeTrajectoryError::covarianceMatrix ( ) const
inline
bool ExtendedPerigeeTrajectoryError::isValid ( void  ) const
inline

Access methods

Definition at line 23 of file ExtendedPerigeeTrajectoryError.h.

References vl.

bool ExtendedPerigeeTrajectoryError::weightIsAvailable ( ) const
inline

Definition at line 26 of file ExtendedPerigeeTrajectoryError.h.

References weightAvailable.

Referenced by weightMatrix().

const AlgebraicSymMatrix66& ExtendedPerigeeTrajectoryError::weightMatrix ( int &  error) const
inline

Definition at line 32 of file ExtendedPerigeeTrajectoryError.h.

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

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

33  {
34  error = 0;
35  if(! weightIsAvailable()) {
36  weight = cov.Inverse(error);
37  if(error != 0) LogDebug("RecoVertex/ExtendedPerigeeTrajectoryError")
38  << "unable to invert covariance matrix\n";
39  weightAvailable = true;
40  }
41  return weight;
42  }
#define LogDebug(id)

Member Data Documentation

AlgebraicSymMatrix66 ExtendedPerigeeTrajectoryError::cov
private

Definition at line 45 of file ExtendedPerigeeTrajectoryError.h.

Referenced by covarianceMatrix(), and weightMatrix().

bool ExtendedPerigeeTrajectoryError::vl
mutableprivate

Definition at line 48 of file ExtendedPerigeeTrajectoryError.h.

Referenced by isValid().

AlgebraicSymMatrix66 ExtendedPerigeeTrajectoryError::weight
mutableprivate
bool ExtendedPerigeeTrajectoryError::weightAvailable
mutableprivate

Definition at line 47 of file ExtendedPerigeeTrajectoryError.h.

Referenced by weightIsAvailable(), and weightMatrix().