#include <LocalTrajectoryError.h>
Public Member Functions | |
bool | invalid () const |
LocalTrajectoryError () | |
LocalTrajectoryError (InvalidError) | |
LocalTrajectoryError (const AlgebraicSymMatrix55 &aCovarianceMatrix) | |
LocalTrajectoryError (float dx, float dy, float dxdir, float dydir, float dpinv) | |
const AlgebraicSymMatrix55 & | matrix () const |
LocalTrajectoryError & | operator*= (double factor) |
bool | posDef () const |
LocalError | positionError () const |
bool | valid () const |
const AlgebraicSymMatrix55 & | weightMatrix () const |
~LocalTrajectoryError () | |
Private Attributes | |
AlgebraicSymMatrix55 | theCovarianceMatrix |
std::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 20 of file LocalTrajectoryError.h.
|
inline |
Definition at line 23 of file LocalTrajectoryError.h.
|
inline |
Definition at line 25 of file LocalTrajectoryError.h.
References theCovarianceMatrix.
|
inline |
Definition at line 29 of file LocalTrajectoryError.h.
|
inline |
Constructing class from a full covariance matrix. The sequence of the parameters is the same as the one described above.
Definition at line 44 of file LocalTrajectoryError.h.
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 5 of file LocalTrajectoryError.cc.
References PVValHelper::dx, PVValHelper::dy, and theCovarianceMatrix.
|
inline |
Definition at line 31 of file LocalTrajectoryError.h.
References theCovarianceMatrix.
Referenced by BasicTrajectoryState::localError(), and valid().
|
inline |
Returns the covariance matrix.
Definition at line 60 of file LocalTrajectoryError.h.
References theCovarianceMatrix.
Referenced by MuonResidualsFromTrack::addTrkCovMatrix(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), OverlapValidation::analyzeTrajectory(), SiTrackerMultiRecHitUpdator::calcParameters(), BasicTrajectoryState::checkCurvilinError(), CollinearFitAtTM2::CollinearFitAtTM2(), TrajectoryStateCombiner::combine(), MultipleScatteringUpdator::compute(), GsfTrackProducerBase::computeModeAtTM(), PFGsfHelper::computeQpMode(), SiTrackerMultiRecHitUpdator::ComputeWeight(), ReferenceTrajectory::construct(), GlobalTrackerMuonAlignment::debugTrajectorySOS(), GlobalTrackerMuonAlignment::debugTrajectorySOSv(), MRHChi2MeasurementEstimator::estimate(), CollinearFitAtTM::fit(), HitResol::getPairParameters(), GsfTrackProducerBase::localParametersFromQpMode(), GlobalMuonTrackMatcher::match_Chi2(), TSGForOIFromL2::match_Chi2(), SeedMatcher::matchSimTrack(), MeasurementExtractor::measuredError(), BasicTrajectoryState::missingError(), GlobalTrackerMuonAlignment::muonFitter(), oldMUcompute(), operator<<(), TRecHit5DParamConstraint::parametersError(), trajectoryStateTransform::persistentState(), TrackAssociatorByPositionImpl::quality(), BasicTrajectoryState::rescaleError(), TrajectorySegmentBuilder::segments(), CRackTrajectoryBuilder::SortHits(), FastTSGFromPropagation::stateOnDet(), ChargeSignificanceTrajectoryFilter::TBC(), GlobalTrackerMuonAlignment::trackFitter(), DualBzeroTrajectoryFactory::trajectories(), DualTrajectoryFactory::trajectories(), Strip1DMeasurementTransformator::trajectoryError(), Tsos2DPhi::Tsos2DPhi(), Tsos2DZed::Tsos2DZed(), Tsos4D::Tsos4D(), GsfMaterialEffectsUpdator::updateState(), and MaterialEffectsUpdator::updateStateInPlace().
|
inline |
Enables the multiplication of the covariance matrix with the scalar "factor".
Definition at line 69 of file LocalTrajectoryError.h.
References theCovarianceMatrix, and theWeightMatrixPtr.
|
inline |
Definition at line 35 of file LocalTrajectoryError.h.
References theCovarianceMatrix.
Referenced by KFTrajectoryFitter::fitOne(), and GsfMultiStateUpdator::update().
|
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 81 of file LocalTrajectoryError.h.
References theCovarianceMatrix.
Referenced by CkfDebugger::analyseCompatibleMeasurements(), TkGluedMeasurementDet::checkHitProjection(), MTDSectorForwardDoubleLayer::compatible(), ForwardDetLayer::compatible(), MuRingForwardDoubleLayer::compatible(), MTDRingForwardDoubleLayer::compatible(), MTDSectorForwardLayer::compatibleDets(), MuRingForwardLayer::compatibleDets(), MTDRingForwardLayer::compatibleDets(), MTDDetTray::compatibleDets(), CaloDetIdAssociator::crossedElement(), OutsideInMuonSeeder::doLayer(), Chi2MeasurementEstimatorBase::estimate(), AlignmentMonitorGeneric::event(), AlignmentMonitorMuonResiduals::event(), TrackerValidationVariables::fillHitQuantities(), ApeEstimator::fillHitVariables(), MuCSCTnPFlatTableProducer::GetEdgeAndDistToGap(), TrackDetectorAssociator::getTAMuonChamberMatches(), TkPixelMeasurementDet::hasBadComponents(), deDxTools::isFarFromBorder(), ShallowGainCalibration::isFarFromBorder(), SiStripGainFromData::IsFarFromBorder(), TRecHit5DParamConstraint::localPositionError(), GlobalMuonTrackMatcher::match_dist(), Chi2MeasurementEstimatorBase::maximalLocalDisplacement(), TkPixelMeasurementDet::measurements(), TkStripMeasurementDet::measurements(), MuonResidualsFromTrack::MuonResidualsFromTrack(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), AlignmentMuonHIPTrajectorySelector::produce(), TkPhase2OTMeasurementDet::recHits(), TkGluedMeasurementDet::testStrips(), TrackEfficiencyMonitor::testTrackerTracks(), trajectoryToResiduals(), SimpleNavigableLayer::wellInside(), MuRodBarrelLayer::xError(), and MTDTrayBarrelLayer::xError().
|
inline |
Definition at line 32 of file LocalTrajectoryError.h.
References invalid().
Referenced by BasicTrajectoryState::hasError(), BasicTrajectoryState::missingError(), BasicTrajectoryState::rescaleError(), and GsfMultiStateUpdator::update().
const AlgebraicSymMatrix55 & LocalTrajectoryError::weightMatrix | ( | void | ) | const |
Returns the inverse of covariance matrix.
Definition at line 14 of file LocalTrajectoryError.cc.
References invertPosDefMatrix(), theCovarianceMatrix, theWeightMatrixPtr, and UNLIKELY.
|
private |
Definition at line 86 of file LocalTrajectoryError.h.
Referenced by invalid(), LocalTrajectoryError(), matrix(), operator*=(), posDef(), positionError(), and weightMatrix().
|
mutableprivate |
Definition at line 87 of file LocalTrajectoryError.h.
Referenced by operator*=(), and weightMatrix().