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

Definition at line 9 of file ExtendedPerigeeTrajectoryError.h.

9 : weightAvailable(false), vl(false) {}

◆ ExtendedPerigeeTrajectoryError() [2/2]

ExtendedPerigeeTrajectoryError::ExtendedPerigeeTrajectoryError ( const AlgebraicSymMatrix66 covariance)
inline

Definition at line 11 of file ExtendedPerigeeTrajectoryError.h.

12  : cov(covariance), weightAvailable(false), vl(true) {}

Member Function Documentation

◆ covarianceMatrix()

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

Definition at line 22 of file ExtendedPerigeeTrajectoryError.h.

22 { return cov; }

References cov.

Referenced by ParticleKinematicLinearizedTrackState::predictedStateError().

◆ isValid()

bool ExtendedPerigeeTrajectoryError::isValid ( void  ) const
inline

Access methods

Definition at line 18 of file ExtendedPerigeeTrajectoryError.h.

18 { return vl; }

References vl.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

◆ weightIsAvailable()

bool ExtendedPerigeeTrajectoryError::weightIsAvailable ( ) const
inline

Definition at line 20 of file ExtendedPerigeeTrajectoryError.h.

20 { return weightAvailable; }

References weightAvailable.

Referenced by weightMatrix().

◆ weightMatrix()

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

Definition at line 24 of file ExtendedPerigeeTrajectoryError.h.

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  }

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

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

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().

ExtendedPerigeeTrajectoryError::vl
bool vl
Definition: ExtendedPerigeeTrajectoryError.h:39
ExtendedPerigeeTrajectoryError::weightAvailable
bool weightAvailable
Definition: ExtendedPerigeeTrajectoryError.h:38
relativeConstraints.error
error
Definition: relativeConstraints.py:53
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
ExtendedPerigeeTrajectoryError::weight
AlgebraicSymMatrix66 weight
Definition: ExtendedPerigeeTrajectoryError.h:37
ExtendedPerigeeTrajectoryError::cov
AlgebraicSymMatrix66 cov
Definition: ExtendedPerigeeTrajectoryError.h:36
ExtendedPerigeeTrajectoryError::weightIsAvailable
bool weightIsAvailable() const
Definition: ExtendedPerigeeTrajectoryError.h:20
weight
Definition: weight.py:1