CMS 3D CMS Logo

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() [1/2]

ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError ( )
inline

◆ ExtendedPerigeeTrajectoryError() [2/2]

ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError ( const AlgebraicSymMatrix66 covariance)
inline

Member Function Documentation

◆ covarianceMatrix()

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

◆ isValid()

bool ExtendedPerigeeTrajectoryError::isValid ( void  ) const
inline

◆ weightIsAvailable()

bool ExtendedPerigeeTrajectoryError::weightIsAvailable ( ) const
inline

Definition at line 20 of file ExtendedPerigeeTrajectoryError.h.

References weightAvailable.

Referenced by weightMatrix().

◆ weightMatrix()

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

Definition at line 24 of file ExtendedPerigeeTrajectoryError.h.

References cov, relativeConstraints::error, LogDebug, weight, weightAvailable, and weightIsAvailable().

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

24  {
25  error = 0;
26  if (!weightIsAvailable()) {
27  weight = cov.Inverse(error);
28  if (error != 0)
29  LogDebug("RecoVertex/ExtendedPerigeeTrajectoryError") << "unable to invert covariance matrix\n";
30  weightAvailable = true;
31  }
32  return weight;
33  }
Definition: weight.py:1
#define LogDebug(id)

Member Data Documentation

◆ cov

AlgebraicSymMatrix66 ExtendedPerigeeTrajectoryError::cov
private

Definition at line 36 of file ExtendedPerigeeTrajectoryError.h.

Referenced by covarianceMatrix(), and weightMatrix().

◆ vl

bool ExtendedPerigeeTrajectoryError::vl
mutableprivate

Definition at line 39 of file ExtendedPerigeeTrajectoryError.h.

Referenced by isValid().

◆ weight

AlgebraicSymMatrix66 ExtendedPerigeeTrajectoryError::weight
mutableprivate

◆ weightAvailable

bool ExtendedPerigeeTrajectoryError::weightAvailable
mutableprivate

Definition at line 38 of file ExtendedPerigeeTrajectoryError.h.

Referenced by weightIsAvailable(), and weightMatrix().