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.
|
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.
|
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.
|
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.
|
inline |
track parameter covariance matrix on the plane
Definition at line 92 of file TrackState.h.
|
inline |
track parameter covariance matrix in global cartesian coordinates
Definition at line 113 of file TrackState.h.
|
inline |
Printout information.
Definition at line 119 of file TrackState.h.
|
inline |
is the track momentum along the plane direction?
Definition at line 116 of file TrackState.h.
|
inline |
mass hypthesis of the track
Definition at line 102 of file TrackState.h.
|
inline |
|
inline |
track parameters defined on the plane
Definition at line 90 of file TrackState.h.
|
inline |
|
inline |
|
inline |
plane where the parameters are defined
Definition at line 94 of file TrackState.h.
|
inline |
|
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.
|
inline |
Set the covariance matrix of the TrackState.
Definition at line 140 of file TrackState.h.
|
inline |
Set the parameters of the TrackState; also update the global position and momentum accordingly.
Definition at line 143 of file TrackState.h.
|
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.