#include <LocalTrajectoryError.h>
Public Member Functions | |
LocalTrajectoryError () | |
LocalTrajectoryError (const AlgebraicSymMatrix &aCovarianceMatrix) | |
LocalTrajectoryError (float dx, float dy, float dxdir, float dydir, float dpinv) | |
LocalTrajectoryError (const AlgebraicSymMatrix55 &aCovarianceMatrix) | |
const AlgebraicSymMatrix55 & | matrix () const |
const AlgebraicSymMatrix | matrix_old () 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 | ( | ) |
Definition at line 4 of file LocalTrajectoryError.cc.
{}
LocalTrajectoryError::~LocalTrajectoryError | ( | ) |
Definition at line 6 of file LocalTrajectoryError.cc.
{}
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.
: theCovarianceMatrix(aCovarianceMatrix), theWeightMatrixPtr() { }
LocalTrajectoryError::LocalTrajectoryError | ( | const AlgebraicSymMatrix & | aCovarianceMatrix | ) |
Definition at line 11 of file LocalTrajectoryError.cc.
: theCovarianceMatrix(asSMatrix<5>(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 16 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 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(), ReferenceTrajectory::construct(), DualKalmanTrajectory::construct(), GlobalTrackerMuonAlignment::debugTrajectorySOS(), GlobalTrackerMuonAlignment::debugTrajectorySOSv(), Chi2MeasurementEstimatorForTrackerHits::estimate(), CollinearFitAtTM::fit(), GsfTrackProducerBase::localParametersFromQpMode(), GlobalMuonTrackMatcher::match_Chi2(), MeasurementExtractor::measuredError(), GlobalTrackerMuonAlignment::muonFitter(), oldMUcompute(), operator<<(), 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; }
const AlgebraicSymMatrix LocalTrajectoryError::matrix_old | ( | ) | const [inline] |
Returns the covariance matrix.
Definition at line 57 of file LocalTrajectoryError.h.
References asHepMatrix(), and theCovarianceMatrix.
{ return asHepMatrix(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.
{ 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 77 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(), 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 |
Definition at line 27 of file LocalTrajectoryError.cc.
References invertPosDefMatrix(), theCovarianceMatrix, and theWeightMatrixPtr.
{ if (theWeightMatrixPtr.get() == 0) { theWeightMatrixPtr.reset(new AlgebraicSymMatrix55()); invertPosDefMatrix(theCovarianceMatrix,*theWeightMatrixPtr); } return *theWeightMatrixPtr; }
Definition at line 83 of file LocalTrajectoryError.h.
Referenced by LocalTrajectoryError(), matrix(), matrix_old(), operator*=(), positionError(), and weightMatrix().
boost::shared_ptr<AlgebraicSymMatrix55> LocalTrajectoryError::theWeightMatrixPtr [mutable, private] |
Definition at line 84 of file LocalTrajectoryError.h.
Referenced by operator*=(), and weightMatrix().