CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
LocalTrajectoryError Class Reference

#include <LocalTrajectoryError.h>

Public Member Functions

 LocalTrajectoryError ()
 
 LocalTrajectoryError (const AlgebraicSymMatrix55 &aCovarianceMatrix)
 
 LocalTrajectoryError (const AlgebraicSymMatrix &aCovarianceMatrix)
 
 LocalTrajectoryError (float dx, float dy, float dxdir, float dydir, float dpinv)
 
const AlgebraicSymMatrix55matrix () const
 
const AlgebraicSymMatrix matrix_old () const
 
LocalTrajectoryErroroperator*= (double factor)
 
LocalError positionError () const
 
const AlgebraicSymMatrix55weightMatrix () const
 
 ~LocalTrajectoryError ()
 

Private Attributes

AlgebraicSymMatrix55 theCovarianceMatrix
 
boost::shared_ptr
< AlgebraicSymMatrix55
theWeightMatrixPtr
 

Detailed Description

Class providing access to the covariance matrix of a set of relevant parameters of a trajectory in a local, Cartesian frame. The errors provided are:

sigma^2(q/p) : charge (plus or minus one) divided by magnitude of momentum
sigma^2(dxdz) : direction tangent in local xz-plane
sigma^2(dydz) : direction tangent in local yz-plane
sigma^2(x) : local x-coordinate
sigma^2(y) : local y-coordinate

plus the relevant correlation terms.

Definition at line 21 of file LocalTrajectoryError.h.

Constructor & Destructor Documentation

LocalTrajectoryError::LocalTrajectoryError ( )

Definition at line 4 of file LocalTrajectoryError.cc.

4 {}
LocalTrajectoryError::~LocalTrajectoryError ( )

Definition at line 6 of file LocalTrajectoryError.cc.

6 {}
LocalTrajectoryError::LocalTrajectoryError ( const AlgebraicSymMatrix55 aCovarianceMatrix)

Constructing class from a full covariance matrix. The sequence of the parameters is the same as the one described above.

Definition at line 8 of file LocalTrajectoryError.cc.

8  :
9  theCovarianceMatrix(aCovarianceMatrix), theWeightMatrixPtr() { }
AlgebraicSymMatrix55 theCovarianceMatrix
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
LocalTrajectoryError::LocalTrajectoryError ( const AlgebraicSymMatrix aCovarianceMatrix)

Definition at line 11 of file LocalTrajectoryError.cc.

11  :
12  theCovarianceMatrix(asSMatrix<5>(aCovarianceMatrix)), theWeightMatrixPtr() {}
AlgebraicSymMatrix55 theCovarianceMatrix
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
LocalTrajectoryError::LocalTrajectoryError ( float  dx,
float  dy,
float  dxdir,
float  dydir,
float  dpinv 
)

Constructing class from standard deviations of the individual parameters, making the covariance matrix diagonal. The sequence of the input parameters is sigma(x), sigma(y), sigma(dxdz), sigma(dydz), sigma(q/p), but the resulting covariance matrix has the same structure as the one described above.

Definition at line 16 of file LocalTrajectoryError.cc.

References theCovarianceMatrix.

18 {
19  theCovarianceMatrix(3,3) = dx*dx;
20  theCovarianceMatrix(4,4) = dy*dy;
21  theCovarianceMatrix(1,1) = dxdir*dxdir;
22  theCovarianceMatrix(2,2) = dydir*dydir;
23  theCovarianceMatrix(0,0) = dpinv*dpinv;
24 
25 }
AlgebraicSymMatrix55 theCovarianceMatrix
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr

Member Function Documentation

const AlgebraicSymMatrix55& LocalTrajectoryError::matrix ( void  ) const
inline

Returns the covariance matrix.

Definition at line 50 of file LocalTrajectoryError.h.

References theCovarianceMatrix.

Referenced by GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), BasicSingleTrajectoryState::checkCartesianError(), BasicSingleTrajectoryState::checkCurvilinError(), CollinearFitAtTM2::CollinearFitAtTM2(), TrajectoryStateCombiner::combine(), MultipleScatteringUpdator::compute(), GsfTrackProducerBase::computeModeAtTM(), PFGsfHelper::computeQpMode(), DualKalmanTrajectory::construct(), ReferenceTrajectory::construct(), GlobalTrackerMuonAlignment::debugTrajectorySOS(), GlobalTrackerMuonAlignment::debugTrajectorySOSv(), Chi2MeasurementEstimatorForTrackerHits::estimate(), CollinearFitAtTM::fit(), MuonKinkFinder::getChi2(), GsfTrackProducerBase::localParametersFromQpMode(), GlobalMuonTrackMatcher::match_Chi2(), MeasurementExtractor::measuredError(), GlobalTrackerMuonAlignment::muonFitter(), oldMUcompute(), operator<<(), TrajectoryStateTransform::persistentState(), TrajectorySeedProducer::produce(), StraightLinePropagator::propagatedState(), TrackAssociatorByPosition::quality(), NuclearInteractionFinder::rescaleError(), BasicSingleTrajectoryState::rescaleError(), TrajectorySegmentBuilder::segments(), CRackTrajectoryBuilder::SortHits(), TrajectorySeedProducer::stateOnDet(), FastTSGFromPropagation::stateOnDet(), ChargeSignificanceTrajectoryFilter::TBC(), CkfDebugger::testSeed(), GlobalTrackerMuonAlignment::trackFitter(), DualTrajectoryFactory::trajectories(), DualBzeroTrajectoryFactory::trajectories(), Strip1DMeasurementTransformator::trajectoryError(), StripMeasurementTransformator::trajectoryError(), Tsos2DPhi::Tsos2DPhi(), Tsos2DZed::Tsos2DZed(), Tsos4D::Tsos4D(), GsfMaterialEffectsUpdator::updateState(), VolumeMaterialEffectsUpdator::updateState(), and MaterialEffectsUpdator::updateStateInPlace().

50  {
51  return theCovarianceMatrix;
52  }
AlgebraicSymMatrix55 theCovarianceMatrix
const AlgebraicSymMatrix LocalTrajectoryError::matrix_old ( ) const
inline

Returns the covariance matrix.

Definition at line 57 of file LocalTrajectoryError.h.

References asHepMatrix(), and theCovarianceMatrix.

57  {
59  }
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:49
AlgebraicSymMatrix55 theCovarianceMatrix
LocalTrajectoryError& LocalTrajectoryError::operator*= ( double  factor)
inline

Enables the multiplication of the covariance matrix with the scalar "factor".

Definition at line 67 of file LocalTrajectoryError.h.

References theCovarianceMatrix, and theWeightMatrixPtr.

67  {
68  theCovarianceMatrix *= factor;
69  if ((theWeightMatrixPtr.get() != 0) && (factor != 0.0)) { (*theWeightMatrixPtr) /= factor; }
70  return *this;
71  }
AlgebraicSymMatrix55 theCovarianceMatrix
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr
LocalError LocalTrajectoryError::positionError ( ) const
inline

Returns the two-by-two submatrix of the covariance matrix which yields the local position errors as well as the correlation between them.

Definition at line 77 of file LocalTrajectoryError.h.

References theCovarianceMatrix.

Referenced by CkfDebugger::analyseCompatibleMeasurements(), SiPixelHitEfficiencySource::analyze(), TkGluedMeasurementDet::checkHitProjection(), ForwardDetLayer::compatible(), MuRingForwardDoubleLayer::compatible(), MuRingForwardLayer::compatibleDets(), CaloDetIdAssociator::crossedElement(), Chi2StripEstimator::estimate(), Chi2Strip1DEstimator::estimate(), Chi2MeasurementEstimatorBase::estimate(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), RoadSearchTrackCandidateMakerAlgorithm::extrapolateTrajectory(), TkStripMeasurementDet::fastMeasurements(), TrackerValidationVariables::fillHitQuantities(), DualKalmanTrajectory::fillMeasurementAndError1(), DualKalmanTrajectory::fillMeasurementAndError2(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), TrackDetectorAssociator::getTAMuonChamberMatches(), TkPixelMeasurementDet::hasBadComponents(), DeDxDiscriminatorTools::IsFarFromBorder(), ShallowGainCalibration::IsFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), GlobalMuonTrackMatcher::match_dist(), cms::HICSeedMeasurementEstimator::maximalLocalDisplacement(), Chi2MeasurementEstimatorBase::maximalLocalDisplacement(), ForwardMeasurementEstimator::maximalLocalDisplacement(), BarrelMeasurementEstimator::maximalLocalDisplacement(), MuonResidualsFromTrack::MuonResidualsFromTrack(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), ShallowTrackClustersProducer::produce(), TrajectorySeedProducer::produce(), AlignmentMuonHIPTrajectorySelector::produce(), RoadSearchTrackCandidateMakerAlgorithm::run(), TkGluedMeasurementDet::testStrips(), TrackEfficiencyMonitor::testTrackerTracks(), trajectoryToResiduals(), SimpleNavigableLayer::wellInside(), and MuRodBarrelLayer::xError().

77  {
79  theCovarianceMatrix(4,4));
80  }
AlgebraicSymMatrix55 theCovarianceMatrix
const AlgebraicSymMatrix55 & LocalTrajectoryError::weightMatrix ( void  ) const

Definition at line 27 of file LocalTrajectoryError.cc.

References invertPosDefMatrix(), theCovarianceMatrix, and theWeightMatrixPtr.

27  {
28  if (theWeightMatrixPtr.get() == 0) {
31  }
32  return *theWeightMatrixPtr;
33 }
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
bool invertPosDefMatrix(ROOT::Math::SMatrix< T, N, N, ROOT::Math::MatRepSym< T, N > > &m)
AlgebraicSymMatrix55 theCovarianceMatrix
boost::shared_ptr< AlgebraicSymMatrix55 > theWeightMatrixPtr

Member Data Documentation

AlgebraicSymMatrix55 LocalTrajectoryError::theCovarianceMatrix
private
boost::shared_ptr<AlgebraicSymMatrix55> LocalTrajectoryError::theWeightMatrixPtr
mutableprivate

Definition at line 84 of file LocalTrajectoryError.h.

Referenced by operator*=(), and weightMatrix().