#include <LocalTrajectoryError.h>
Public Member Functions | |
LocalTrajectoryError () | |
LocalTrajectoryError (float dx, float dy, float dxdir, float dydir, float dpinv) | |
LocalTrajectoryError (const AlgebraicSymMatrix55 &aCovarianceMatrix) | |
const AlgebraicSymMatrix55 & | matrix () const |
LocalTrajectoryError & | operator*= (double factor) |
LocalError | positionError () const |
const AlgebraicSymMatrix55 & | weightMatrix () const |
~LocalTrajectoryError () | |
Private Attributes | |
AlgebraicSymMatrix55 | theCovarianceMatrix |
boost::shared_ptr < AlgebraicSymMatrix55 > | theWeightMatrixPtr |
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.
LocalTrajectoryError::LocalTrajectoryError | ( | ) | [inline] |
Definition at line 24 of file LocalTrajectoryError.h.
{}
LocalTrajectoryError::~LocalTrajectoryError | ( | ) | [inline] |
Definition at line 26 of file LocalTrajectoryError.h.
{}
LocalTrajectoryError::LocalTrajectoryError | ( | const AlgebraicSymMatrix55 & | aCovarianceMatrix | ) | [inline] |
Constructing class from a full covariance matrix. The sequence of the parameters is the same as the one described above.
Definition at line 32 of file LocalTrajectoryError.h.
: theCovarianceMatrix(aCovarianceMatrix), 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 7 of file LocalTrajectoryError.cc.
References theCovarianceMatrix.
: theCovarianceMatrix(), theWeightMatrixPtr() { theCovarianceMatrix(3,3) = dx*dx; theCovarianceMatrix(4,4) = dy*dy; theCovarianceMatrix(1,1) = dxdir*dxdir; theCovarianceMatrix(2,2) = dydir*dydir; theCovarianceMatrix(0,0) = dpinv*dpinv; }
const AlgebraicSymMatrix55& LocalTrajectoryError::matrix | ( | void | ) | const [inline] |
Returns the covariance matrix.
Definition at line 49 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(), ReferenceTrajectory::construct(), DualKalmanTrajectory::construct(), GlobalTrackerMuonAlignment::debugTrajectorySOS(), GlobalTrackerMuonAlignment::debugTrajectorySOSv(), Chi2MeasurementEstimatorForTrackerHits::estimate(), CollinearFitAtTM::fit(), MuonKinkFinder::getChi2(), GsfTrackProducerBase::localParametersFromQpMode(), GlobalMuonTrackMatcher::match_Chi2(), MeasurementExtractor::measuredError(), GlobalTrackerMuonAlignment::muonFitter(), oldMUcompute(), operator<<(), TRecHit5DParamConstraint::parametersError(), TrajectoryStateTransform::persistentState(), TrajectorySeedProducer::produce(), StraightLinePropagator::propagatedState(), TrackAssociatorByPosition::quality(), BasicSingleTrajectoryState::rescaleError(), NuclearInteractionFinder::rescaleError(), TrajectorySegmentBuilder::segments(), CRackTrajectoryBuilder::SortHits(), FastTSGFromPropagation::stateOnDet(), TrajectorySeedProducer::stateOnDet(), ChargeSignificanceTrajectoryFilter::TBC(), CkfDebugger::testSeed(), GlobalTrackerMuonAlignment::trackFitter(), DualBzeroTrajectoryFactory::trajectories(), DualTrajectoryFactory::trajectories(), Strip1DMeasurementTransformator::trajectoryError(), StripMeasurementTransformator::trajectoryError(), Tsos2DPhi::Tsos2DPhi(), Tsos2DZed::Tsos2DZed(), Tsos4D::Tsos4D(), VolumeMaterialEffectsUpdator::updateState(), GsfMaterialEffectsUpdator::updateState(), and MaterialEffectsUpdator::updateStateInPlace().
{ return theCovarianceMatrix; }
LocalTrajectoryError& LocalTrajectoryError::operator*= | ( | double | factor | ) | [inline] |
Enables the multiplication of the covariance matrix with the scalar "factor".
Definition at line 61 of file LocalTrajectoryError.h.
References theCovarianceMatrix, and theWeightMatrixPtr.
{ theCovarianceMatrix *= factor; if ((theWeightMatrixPtr.get() != 0) && (factor != 0.0)) { (*theWeightMatrixPtr) /= factor; } return *this; }
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 71 of file LocalTrajectoryError.h.
References theCovarianceMatrix.
Referenced by CkfDebugger::analyseCompatibleMeasurements(), SiPixelHitEfficiencySource::analyze(), TkGluedMeasurementDet::checkHitProjection(), MuRingForwardDoubleLayer::compatible(), ForwardDetLayer::compatible(), MuRingForwardLayer::compatibleDets(), CaloDetIdAssociator::crossedElement(), Chi2Strip1DEstimator::estimate(), Chi2StripEstimator::estimate(), Chi2MeasurementEstimatorBase::estimate(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), RoadSearchTrackCandidateMakerAlgorithm::extrapolateTrajectory(), TkStripMeasurementDet::fastMeasurements(), TrackerValidationVariables::fillHitQuantities(), DualKalmanTrajectory::fillMeasurementAndError1(), DualKalmanTrajectory::fillMeasurementAndError2(), RoadSearchTrackCandidateMakerAlgorithm::FindBestHits(), TrackDetectorAssociator::getTAMuonChamberMatches(), TkPixelMeasurementDet::hasBadComponents(), ShallowGainCalibration::IsFarFromBorder(), DeDxDiscriminatorTools::IsFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), TRecHit5DParamConstraint::localPositionError(), GlobalMuonTrackMatcher::match_dist(), BarrelMeasurementEstimator::maximalLocalDisplacement(), ForwardMeasurementEstimator::maximalLocalDisplacement(), Chi2MeasurementEstimatorBase::maximalLocalDisplacement(), cms::HICSeedMeasurementEstimator::maximalLocalDisplacement(), MuonResidualsFromTrack::MuonResidualsFromTrack(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), ShallowTrackClustersProducer::produce(), AlignmentMuonHIPTrajectorySelector::produce(), TrajectorySeedProducer::produce(), RoadSearchTrackCandidateMakerAlgorithm::run(), TkGluedMeasurementDet::testStrips(), TrackEfficiencyMonitor::testTrackerTracks(), trajectoryToResiduals(), SimpleNavigableLayer::wellInside(), and MuRodBarrelLayer::xError().
{ return LocalError( theCovarianceMatrix(3,3),theCovarianceMatrix(3,4), theCovarianceMatrix(4,4)); }
const AlgebraicSymMatrix55 & LocalTrajectoryError::weightMatrix | ( | void | ) | const |
Returns the inverse of covariance matrix.
Definition at line 18 of file LocalTrajectoryError.cc.
References invertPosDefMatrix(), theCovarianceMatrix, theWeightMatrixPtr, and unlikely.
{ if unlikely(theWeightMatrixPtr.get() == 0) { theWeightMatrixPtr.reset(new AlgebraicSymMatrix55()); invertPosDefMatrix(theCovarianceMatrix,*theWeightMatrixPtr); } return *theWeightMatrixPtr; }
Definition at line 77 of file LocalTrajectoryError.h.
Referenced by LocalTrajectoryError(), matrix(), operator*=(), positionError(), and weightMatrix().
boost::shared_ptr<AlgebraicSymMatrix55> LocalTrajectoryError::theWeightMatrixPtr [mutable, private] |
Definition at line 78 of file LocalTrajectoryError.h.
Referenced by operator*=(), and weightMatrix().