CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MeasurementExtractor Class Reference

#include <MeasurementExtractor.h>

Public Member Functions

AlgebraicSymMatrix measuredError (const TrackingRecHit &)
 
template<unsigned int D>
AlgebraicROOTObject< D >::SymMatrix measuredError (const TrackingRecHit &hit)
 
AlgebraicVector measuredParameters (const TrackingRecHit &)
 
template<unsigned int D>
AlgebraicROOTObject< D >::Vector measuredParameters (const TrackingRecHit &hit)
 
 MeasurementExtractor (const TrajectoryStateOnSurface &aTSoS)
 

Private Attributes

const TrajectoryStateOnSurfacetheTSoS
 

Detailed Description

Extracts the subset of TrajectoryState parameters and errors that correspond to the parameters measured by a RecHit.

Definition at line 11 of file MeasurementExtractor.h.

Constructor & Destructor Documentation

◆ MeasurementExtractor()

MeasurementExtractor::MeasurementExtractor ( const TrajectoryStateOnSurface aTSoS)
inline

Definition at line 14 of file MeasurementExtractor.h.

14 : theTSoS(aTSoS) {}
const TrajectoryStateOnSurface & theTSoS

Member Function Documentation

◆ measuredError() [1/2]

AlgebraicSymMatrix MeasurementExtractor::measuredError ( const TrackingRecHit hit)

Definition at line 9 of file MeasurementExtractor.cc.

References asHepMatrix(), data-class-funcs::H, TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), and theTSoS.

9  {
11  AlgebraicMatrix H(hit.projectionMatrix());
12  // return AlgebraicSymMatrix( H * err5 * H.T());
13  return err5.similarity(H);
14 }
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:60
const LocalTrajectoryError & localError() const
CLHEP::HepMatrix AlgebraicMatrix
const TrajectoryStateOnSurface & theTSoS
const AlgebraicSymMatrix55 & matrix() const
CLHEP::HepSymMatrix AlgebraicSymMatrix

◆ measuredError() [2/2]

template<unsigned int D>
AlgebraicROOTObject<D>::SymMatrix MeasurementExtractor::measuredError ( const TrackingRecHit hit)
inline

Definition at line 33 of file MeasurementExtractor.h.

References data-class-funcs::H, TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), and theTSoS.

33  {
34  typedef typename AlgebraicROOTObject<D, 5>::Matrix Mat;
36  Mat H = asSMatrix<D, 5>(hit.projectionMatrix());
37  return ROOT::Math::Similarity(H, err5);
38  }
const LocalTrajectoryError & localError() const
ROOT::Math::SMatrix< double, D1, D2, ROOT::Math::MatRepStd< double, D1, D2 > > Matrix
const TrajectoryStateOnSurface & theTSoS
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
const AlgebraicSymMatrix55 & matrix() const

◆ measuredParameters() [1/2]

AlgebraicVector MeasurementExtractor::measuredParameters ( const TrackingRecHit hit)

Definition at line 3 of file MeasurementExtractor.cc.

References asHepVector(), data-class-funcs::H, TrajectoryStateOnSurface::localParameters(), theTSoS, and LocalTrajectoryParameters::vector().

3  {
5  AlgebraicMatrix H(hit.projectionMatrix());
6  return H * par5;
7 }
const LocalTrajectoryParameters & localParameters() const
CLHEP::HepMatrix AlgebraicMatrix
AlgebraicVector5 vector() const
CLHEP::HepVector AlgebraicVector
const TrajectoryStateOnSurface & theTSoS
CLHEP::HepVector asHepVector(const ROOT::Math::SVector< double, N > &v)
Definition: Migration.h:53

◆ measuredParameters() [2/2]

template<unsigned int D>
AlgebraicROOTObject<D>::Vector MeasurementExtractor::measuredParameters ( const TrackingRecHit hit)
inline

Definition at line 25 of file MeasurementExtractor.h.

References data-class-funcs::H, TrajectoryStateOnSurface::localParameters(), theTSoS, and LocalTrajectoryParameters::vector().

25  {
26  typedef typename AlgebraicROOTObject<D, 5>::Matrix Mat;
28  Mat H = asSMatrix<D, 5>(hit.projectionMatrix());
29  return H * par5;
30  }
const LocalTrajectoryParameters & localParameters() const
ROOT::Math::SMatrix< double, D1, D2, ROOT::Math::MatRepStd< double, D1, D2 > > Matrix
AlgebraicVector5 vector() const
ROOT::Math::SVector< double, 5 > AlgebraicVector5
const TrajectoryStateOnSurface & theTSoS

Member Data Documentation

◆ theTSoS

const TrajectoryStateOnSurface& MeasurementExtractor::theTSoS
private

Definition at line 41 of file MeasurementExtractor.h.

Referenced by measuredError(), and measuredParameters().