LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Extension of a TrackState to perform KalmanFilter calculations. More...
#include "KFTrackState.h"
Public Member Functions | |
KFTrackState (const SVector5 &trackStatePar, const SMatrixSym55 &trackStateCov, const Plane &plane, bool trackAlongPlaneDir, int pid) | |
KFTrackState (TrackState &&trackState) | |
bool | updateWithHitState (const HitState &hitstate) |
Update the TrackState given a HitState (they need to be on the same plane) More... | |
bool | combineWithTrackState (const TrackState &trackstate) |
Combine the TrackState given another TrackState (they need to be on the same plane) More... | |
const TrackState & | trackState () const |
Get the (const reference to the) TrackState. More... | |
void | setTrackState (TrackState &&s) |
Set the TrackState. More... | |
std::ostream & | dump (std::ostream &out=std::cout) const |
Printout information. More... | |
const SVector5 & | parameters () const |
This function calls the homonymous function of the stored TrackState. More... | |
const SMatrixSym55 & | covariance () const |
This function calls the homonymous function of the stored TrackState. More... | |
const Plane & | plane () const |
This function calls the homonymous function of the stored TrackState. More... | |
const Point_t & | position () const |
This function calls the homonymous function of the stored TrackState. More... | |
const Vector_t & | momentum () const |
This function calls the homonymous function of the stored TrackState. More... | |
int | pID () const |
This function calls the homonymous function of the stored TrackState. More... | |
double | mass () const |
This function calls the homonymous function of the stored TrackState. More... | |
const SVector6 | parameters6D () const |
This function calls the homonymous function of the stored TrackState. More... | |
bool | isTrackAlongPlaneDir () const |
This function calls the homonymous function of the stored TrackState. More... | |
double | residual (const HitState &hitstate) const |
This function calls the homonymous function of the stored TrackState. More... | |
double | combinedError2 (const HitState &hitstate) const |
This function calls the homonymous function of the stored TrackState. More... | |
double | combinedError (const HitState &hitstate) const |
This function calls the homonymous function of the stored TrackState. More... | |
double | chi2 (const HitState &hitstate) const |
This function calls the homonymous function of the stored TrackState. More... | |
void | setCovariance (const SMatrixSym55 &trackStateCov) |
This function calls the homonymous function of the stored TrackState. More... | |
void | setParameters (const SVector5 &trackStatePar) |
This function calls the homonymous function of the stored TrackState. More... | |
Private Attributes | |
TrackState | fTrackState |
Extension of a TrackState to perform KalmanFilter calculations.
This class extends the concept of TrackState, providing functionalities for Kalman Filter-specific calculations such as 'update' and 'combine'. It holds a TrackState by value, which is modified in place when updating or combining.
Definition at line 21 of file KFTrackState.h.
|
inline |
Definition at line 24 of file KFTrackState.h.
|
inline |
Definition at line 26 of file KFTrackState.h.
References combineWithTrackState(), and updateWithHitState().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 55 of file KFTrackState.h.
References trkf::TrackState::chi2(), and fTrackState.
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 54 of file KFTrackState.h.
References trkf::TrackState::combinedError(), and fTrackState.
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 53 of file KFTrackState.h.
References trkf::TrackState::combinedError2(), and fTrackState.
bool KFTrackState::combineWithTrackState | ( | const TrackState & | trackstate | ) |
Combine the TrackState given another TrackState (they need to be on the same plane)
Definition at line 17 of file KFTrackState.cxx.
References trkf::TrackState::covariance(), recob::tracking::Plane::direction(), e, fTrackState, K, trkf::TrackState::parameters(), trkf::TrackState::plane(), recob::tracking::Plane::position(), trkf::TrackState::setCovariance(), and trkf::TrackState::setParameters().
Referenced by KFTrackState().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 43 of file KFTrackState.h.
References trkf::TrackState::covariance(), and fTrackState.
Referenced by trkf::TrackKalmanFitter::doFitWork(), dump(), and trkf::TrackKalmanFitter::fillResult().
|
inline |
Printout information.
Definition at line 62 of file KFTrackState.h.
References covariance(), recob::tracking::Plane::direction(), isTrackAlongPlaneDir(), mass(), momentum(), parameters(), pID(), plane(), position(), and recob::tracking::Plane::position().
Referenced by trkf::TrackKalmanFitter::doFitWork().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 50 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::isTrackAlongPlaneDir().
Referenced by dump().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 48 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::mass().
Referenced by dump().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 46 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::momentum().
Referenced by dump().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 42 of file KFTrackState.h.
Referenced by dump(), and setTrackState().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 49 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::parameters6D().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 47 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::pID().
Referenced by dump().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 44 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::plane().
Referenced by dump().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 45 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::position().
Referenced by trkf::TrackKalmanFitter::doFitWork(), and dump().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 52 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::residual().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 57 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::setCovariance().
Referenced by trkf::TrackKalmanFitter::doFitWork().
|
inline |
This function calls the homonymous function of the stored TrackState.
Definition at line 58 of file KFTrackState.h.
References fTrackState, and trkf::TrackState::setParameters().
|
inline |
Set the TrackState.
Definition at line 38 of file KFTrackState.h.
References fTrackState, parameters(), trkf::TrackState::parameters(), and s.
|
inline |
Get the (const reference to the) TrackState.
Definition at line 36 of file KFTrackState.h.
References fTrackState.
Referenced by trkf::TrackKalmanFitter::doFitWork(), and trkf::TrackKalmanFitter::setupInputStates().
bool KFTrackState::updateWithHitState | ( | const HitState & | hitstate | ) |
Update the TrackState given a HitState (they need to be on the same plane)
Definition at line 5 of file KFTrackState.cxx.
References trkf::TrackState::covariance(), recob::tracking::Plane::direction(), e, fTrackState, trkf::HitState::hitMeas(), trkf::HitState::hitMeasErr2(), trkf::TrackState::parameters(), trkf::HitState::plane(), trkf::TrackState::plane(), recob::tracking::Plane::position(), trkf::TrackState::setCovariance(), trkf::TrackState::setParameters(), and tmp.
Referenced by trkf::TrackKalmanFitter::doFitWork(), and KFTrackState().
|
private |
Definition at line 71 of file KFTrackState.h.
Referenced by chi2(), combinedError(), combinedError2(), combineWithTrackState(), covariance(), isTrackAlongPlaneDir(), mass(), momentum(), parameters6D(), pID(), plane(), position(), residual(), setCovariance(), setParameters(), setTrackState(), trackState(), and updateWithHitState().