#include <MeasurementExtractor.h>
Public Member Functions | |
AlgebraicSymMatrix | measuredError (const TransientTrackingRecHit &) |
template<unsigned int D> | |
AlgebraicROOTObject< D >::SymMatrix | measuredError (const TransientTrackingRecHit &hit) |
template<unsigned int D> | |
AlgebraicROOTObject< D >::Vector | measuredParameters (const TransientTrackingRecHit &hit) |
AlgebraicVector | measuredParameters (const TransientTrackingRecHit &) |
MeasurementExtractor (const TrajectoryStateOnSurface &aTSoS) | |
Private Attributes | |
const TrajectoryStateOnSurface & | theTSoS |
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.
MeasurementExtractor::MeasurementExtractor | ( | const TrajectoryStateOnSurface & | aTSoS | ) | [inline] |
Definition at line 15 of file MeasurementExtractor.h.
: theTSoS(aTSoS) {}
AlgebraicSymMatrix MeasurementExtractor::measuredError | ( | const TransientTrackingRecHit & | hit | ) |
Definition at line 9 of file MeasurementExtractor.cc.
References asHepMatrix(), TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), TrackingRecHit::projectionMatrix(), and theTSoS.
Referenced by CkfDebugger::analyseRecHitExistance(), TestTrackHits::computeChi2Increment(), CkfDebugger::computePulls(), and MRHChi2MeasurementEstimator::estimate().
{ AlgebraicSymMatrix err5( asHepMatrix( theTSoS.localError().matrix() ) ); AlgebraicMatrix H( hit.projectionMatrix()); // return AlgebraicSymMatrix( H * err5 * H.T()); return err5.similarity(H); }
AlgebraicROOTObject<D>::SymMatrix MeasurementExtractor::measuredError | ( | const TransientTrackingRecHit & | hit | ) | [inline] |
Definition at line 33 of file MeasurementExtractor.h.
References TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), TrackingRecHit::projectionMatrix(), and theTSoS.
{ typedef typename AlgebraicROOTObject<D,5>::Matrix Mat; const AlgebraicSymMatrix55 &err5 = theTSoS.localError().matrix(); Mat H = asSMatrix<D,5>( hit.projectionMatrix() ); return ROOT::Math::Similarity(H,err5); }
AlgebraicROOTObject<D>::Vector MeasurementExtractor::measuredParameters | ( | const TransientTrackingRecHit & | hit | ) | [inline] |
Definition at line 26 of file MeasurementExtractor.h.
References TrajectoryStateOnSurface::localParameters(), TrackingRecHit::projectionMatrix(), theTSoS, and LocalTrajectoryParameters::vector().
{ typedef typename AlgebraicROOTObject<D,5>::Matrix Mat; AlgebraicVector5 par5( theTSoS.localParameters().vector()); Mat H = asSMatrix<D,5>( hit.projectionMatrix() ); return H*par5; }
AlgebraicVector MeasurementExtractor::measuredParameters | ( | const TransientTrackingRecHit & | hit | ) |
Definition at line 3 of file MeasurementExtractor.cc.
References asHepVector(), TrajectoryStateOnSurface::localParameters(), TrackingRecHit::projectionMatrix(), theTSoS, and LocalTrajectoryParameters::vector().
Referenced by CkfDebugger::analyseRecHitExistance(), TestTrackHits::computeChi2Increment(), CkfDebugger::computePulls(), and MRHChi2MeasurementEstimator::estimate().
{ AlgebraicVector par5( asHepVector( theTSoS.localParameters().vector() ) ); AlgebraicMatrix H( hit.projectionMatrix()); return H*par5; }
const TrajectoryStateOnSurface& MeasurementExtractor::theTSoS [private] |
Definition at line 41 of file MeasurementExtractor.h.
Referenced by measuredError(), and measuredParameters().