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 12 of file MeasurementExtractor.h.

Constructor & Destructor Documentation

MeasurementExtractor::MeasurementExtractor ( const TrajectoryStateOnSurface aTSoS)
inline

Definition at line 15 of file MeasurementExtractor.h.

References measuredError(), and measuredParameters().

15  :
16  theTSoS(aTSoS) {}
const TrajectoryStateOnSurface & theTSoS

Member Function Documentation

AlgebraicSymMatrix MeasurementExtractor::measuredError ( const TrackingRecHit hit)

Definition at line 9 of file MeasurementExtractor.cc.

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

Referenced by CkfDebugger::analyseRecHitExistance(), TestTrackHits::computeChi2Increment(), CkfDebugger::computePulls(), and MeasurementExtractor().

9  {
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:49
CLHEP::HepMatrix AlgebraicMatrix
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
const TrajectoryStateOnSurface & theTSoS
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual AlgebraicMatrix projectionMatrix() const =0
template<unsigned int D>
AlgebraicROOTObject<D>::SymMatrix MeasurementExtractor::measuredError ( const TrackingRecHit hit)
inline

Definition at line 33 of file MeasurementExtractor.h.

References class-composition::H, TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), TrackingRecHit::projectionMatrix(), 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  }
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, D1, D2, ROOT::Math::MatRepStd< double, D1, D2 > > Matrix
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
const TrajectoryStateOnSurface & theTSoS
virtual AlgebraicMatrix projectionMatrix() const =0
AlgebraicVector MeasurementExtractor::measuredParameters ( const TrackingRecHit hit)

Definition at line 3 of file MeasurementExtractor.cc.

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

Referenced by CkfDebugger::analyseRecHitExistance(), TestTrackHits::computeChi2Increment(), CkfDebugger::computePulls(), and MeasurementExtractor().

3  {
6  return H*par5;
7 }
const LocalTrajectoryParameters & localParameters() const
AlgebraicVector5 vector() const
CLHEP::HepMatrix AlgebraicMatrix
CLHEP::HepVector AlgebraicVector
const TrajectoryStateOnSurface & theTSoS
CLHEP::HepVector asHepVector(const ROOT::Math::SVector< double, N > &v)
Definition: Migration.h:43
virtual AlgebraicMatrix projectionMatrix() const =0
template<unsigned int D>
AlgebraicROOTObject<D>::Vector MeasurementExtractor::measuredParameters ( const TrackingRecHit hit)
inline

Definition at line 26 of file MeasurementExtractor.h.

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

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

Member Data Documentation

const TrajectoryStateOnSurface& MeasurementExtractor::theTSoS
private

Definition at line 41 of file MeasurementExtractor.h.

Referenced by measuredError(), and measuredParameters().