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) {}

Member Function Documentation

◆ measuredError() [1/2]

AlgebraicSymMatrix MeasurementExtractor::measuredError ( const TrackingRecHit hit)

Definition at line 9 of file MeasurementExtractor.cc.

9  {
11  AlgebraicMatrix H(hit.projectionMatrix());
12  // return AlgebraicSymMatrix( H * err5 * H.T());
13  return err5.similarity(H);
14 }

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

◆ measuredError() [2/2]

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

Definition at line 33 of file MeasurementExtractor.h.

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  }

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

◆ measuredParameters() [1/2]

AlgebraicVector MeasurementExtractor::measuredParameters ( const TrackingRecHit hit)

◆ measuredParameters() [2/2]

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

Definition at line 25 of file MeasurementExtractor.h.

25  {
26  typedef typename AlgebraicROOTObject<D, 5>::Matrix Mat;
28  Mat H = asSMatrix<D, 5>(hit.projectionMatrix());
29  return H * par5;
30  }

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

Member Data Documentation

◆ theTSoS

const TrajectoryStateOnSurface& MeasurementExtractor::theTSoS
private

Definition at line 41 of file MeasurementExtractor.h.

Referenced by measuredError(), and measuredParameters().

class-composition.H
H
Definition: class-composition.py:31
LocalTrajectoryError::matrix
const AlgebraicSymMatrix55 & matrix() const
Definition: LocalTrajectoryError.h:60
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
LocalTrajectoryParameters::vector
AlgebraicVector5 vector() const
Definition: LocalTrajectoryParameters.h:120
TrajectoryStateOnSurface::localParameters
const LocalTrajectoryParameters & localParameters() const
Definition: TrajectoryStateOnSurface.h:73
MeasurementExtractor::theTSoS
const TrajectoryStateOnSurface & theTSoS
Definition: MeasurementExtractor.h:41
AlgebraicROOTObject::Matrix
ROOT::Math::SMatrix< double, D1, D2, ROOT::Math::MatRepStd< double, D1, D2 > > Matrix
Definition: AlgebraicROOTObjects.h:69
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
AlgebraicVector5
ROOT::Math::SVector< double, 5 > AlgebraicVector5
Definition: AlgebraicROOTObjects.h:14
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
asHepVector
CLHEP::HepVector asHepVector(const ROOT::Math::SVector< double, N > &v)
Definition: Migration.h:53
TrajectoryStateOnSurface::localError
const LocalTrajectoryError & localError() const
Definition: TrajectoryStateOnSurface.h:77
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition: AlgebraicROOTObjects.h:23
asHepMatrix
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:60
hit
Definition: SiStripHitEffFromCalibTree.cc:88