LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Class for track parameters (and errors) defined on a recob::tracking::Plane. More...
#include "TrackState.h"
Public Member Functions | |
TrackState (const SVector5 &trackStatePar, const SMatrixSym55 &trackStateCov, const Plane &plane, bool trackAlongPlaneDir, int pid) | |
const SVector5 & | parameters () const |
track parameters defined on the plane More... | |
const SMatrixSym55 & | covariance () const |
track parameter covariance matrix on the plane More... | |
const Plane & | plane () const |
plane where the parameters are defined More... | |
const Point_t & | position () const |
position of the track More... | |
const Vector_t & | momentum () const |
momentum of the track More... | |
int | pID () const |
particle id hypthesis of the track More... | |
double | mass () const |
mass hypthesis of the track More... | |
SVector6 | parameters6D () const |
track parameters in global cartesian coordinates More... | |
SMatrixSym66 | covariance6D () const |
track parameter covariance matrix in global cartesian coordinates More... | |
bool | isTrackAlongPlaneDir () const |
is the track momentum along the plane direction? More... | |
std::ostream & | dump (std::ostream &out=std::cout) const |
Printout information. More... | |
double | residual (const HitState &hitstate) const |
Residual of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this. More... | |
double | combinedError2 (const HitState &hitstate) const |
Combined squared error of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this. More... | |
double | combinedError (const HitState &hitstate) const |
Combined error of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this. More... | |
double | chi2 (const HitState &hitstate) const |
Chi2 of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this. More... | |
void | setCovariance (const SMatrixSym55 &trackStateCov) |
Set the covariance matrix of the TrackState. More... | |
void | setParameters (const SVector5 &trackStatePar) |
Set the parameters of the TrackState; also update the global position and momentum accordingly. More... | |
Private Attributes | |
SVector5 | fTrackStatePar |
track parameters defined on the plane More... | |
SMatrixSym55 | fTrackStateCov |
track parameter covariance matrix on the plane More... | |
Plane | fPlane |
plane where the parameters are defined More... | |
int | fPid |
particle id hypthesis of the track More... | |
Point_t | fPos |
position of the track (cached) More... | |
Vector_t | fMom |
momentum of the track (cached) More... | |
Class for track parameters (and errors) defined on a recob::tracking::Plane.
This class collects the track parameters (and errors) defined on a recob::tracking::Plane. It stores the 5d parameters and covariance, plus the global position and momentum. Given a HitState on the same plane, it provides easy access to functionalities like chi2 and residual.
Definition at line 79 of file TrackState.h.
|
inline |
Definition at line 81 of file TrackState.h.
References trkf::HitState::fPlane, and recob::tracking::Plane::Local5DToGlobal6DParameters().
|
inline |
Chi2 of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this.
Definition at line 137 of file TrackState.h.
Referenced by trkf::KFTrackState::chi2().
|
inline |
Combined error of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this.
Definition at line 134 of file TrackState.h.
Referenced by trkf::KFTrackState::combinedError().
|
inline |
Combined squared error of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this.
Definition at line 131 of file TrackState.h.
References trkf::HitState::hitMeasErr2().
Referenced by trkf::KFTrackState::combinedError2().
|
inline |
track parameter covariance matrix on the plane
Definition at line 92 of file TrackState.h.
Referenced by trkf::KFTrackState::combineWithTrackState(), trkf::KFTrackState::covariance(), trkf::TrackStatePropagator::propagateToPlane(), trkf::TrackStatePropagator::rotateToPlane(), and trkf::KFTrackState::updateWithHitState().
|
inline |
track parameter covariance matrix in global cartesian coordinates
Definition at line 113 of file TrackState.h.
References trkf::HitState::fPlane, and recob::tracking::Plane::Local5DToGlobal6DCovariance().
|
inline |
Printout information.
Definition at line 119 of file TrackState.h.
References recob::tracking::Plane::direction(), trkf::HitState::plane(), and recob::tracking::Plane::position().
Referenced by trkf::TrackKalmanFitter::doFitWork().
|
inline |
is the track momentum along the plane direction?
Definition at line 116 of file TrackState.h.
References recob::tracking::Plane::direction(), and trkf::HitState::fPlane.
Referenced by trkf::KFTrackState::isTrackAlongPlaneDir(), and trkf::TrackStatePropagator::propagateToPlane().
|
inline |
mass hypthesis of the track
Definition at line 102 of file TrackState.h.
References util::kBogusD.
Referenced by trkf::KFTrackState::mass(), and trkf::TrackStatePropagator::propagateToPlane().
|
inline |
momentum of the track
Definition at line 98 of file TrackState.h.
Referenced by trkf::TrackStatePropagator::distancePairToPlane(), trkf::TrackStatePropagator::distanceToPlane(), trkf::KFTrackState::momentum(), trkf::TrackStatePropagator::propagateToPlane(), and trkf::TrackStatePropagator::rotateToPlane().
|
inline |
track parameters defined on the plane
Definition at line 90 of file TrackState.h.
Referenced by trkf::KFTrackState::combineWithTrackState(), trkf::TrackStatePropagator::propagateToPlane(), trkf::TrackStatePropagator::rotateToPlane(), trkf::KFTrackState::setTrackState(), and trkf::KFTrackState::updateWithHitState().
|
inline |
track parameters in global cartesian coordinates
Definition at line 111 of file TrackState.h.
Referenced by trkf::KFTrackState::parameters6D().
|
inline |
particle id hypthesis of the track
Definition at line 100 of file TrackState.h.
Referenced by trkf::KFTrackState::pID(), trkf::TrackStatePropagator::propagateToPlane(), and trkf::TrackStatePropagator::rotateToPlane().
|
inline |
plane where the parameters are defined
Definition at line 94 of file TrackState.h.
References trkf::HitState::fPlane.
Referenced by trkf::KFTrackState::combineWithTrackState(), trkf::TrackKalmanFitter::doFitWork(), trkf::KFTrackState::plane(), trkf::TrackStatePropagator::propagateToPlane(), trkf::TrackStatePropagator::rotateToPlane(), and trkf::KFTrackState::updateWithHitState().
|
inline |
position of the track
Definition at line 96 of file TrackState.h.
Referenced by trkf::TrackStatePropagator::distancePairToPlane(), trkf::TrackStatePropagator::distanceToPlane(), trkf::TrackStatePropagator::perpDistanceToPlane(), trkf::KFTrackState::position(), trkf::TrackStatePropagator::propagateToPlane(), and trkf::TrackStatePropagator::rotateToPlane().
|
inline |
Residual of the TrackState with respect to a HitState. The two states must be on the same plane; it is responsibility of the user to enforce this.
Definition at line 128 of file TrackState.h.
References trkf::HitState::hitMeas().
Referenced by trkf::KFTrackState::residual().
|
inline |
Set the covariance matrix of the TrackState.
Definition at line 140 of file TrackState.h.
Referenced by trkf::KFTrackState::combineWithTrackState(), trkf::KFTrackState::setCovariance(), and trkf::KFTrackState::updateWithHitState().
|
inline |
Set the parameters of the TrackState; also update the global position and momentum accordingly.
Definition at line 143 of file TrackState.h.
References trkf::HitState::fPlane, and recob::tracking::Plane::Local5DToGlobal6DParameters().
Referenced by trkf::KFTrackState::combineWithTrackState(), trkf::KFTrackState::setParameters(), and trkf::KFTrackState::updateWithHitState().
|
private |
momentum of the track (cached)
Definition at line 156 of file TrackState.h.
|
private |
particle id hypthesis of the track
Definition at line 154 of file TrackState.h.
|
private |
plane where the parameters are defined
Definition at line 153 of file TrackState.h.
|
private |
position of the track (cached)
Definition at line 155 of file TrackState.h.
|
private |
track parameter covariance matrix on the plane
Definition at line 152 of file TrackState.h.
|
private |
track parameters defined on the plane
Definition at line 151 of file TrackState.h.