LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "KHit.h"
Public Member Functions | |
KHit () | |
Default constructor. More... | |
KHit (const std::shared_ptr< const Surface > &psurf) | |
Initializing Constructor – surface only. More... | |
KHit (const std::shared_ptr< const Surface > &psurf, const typename KVector< N >::type &mvec, const typename KSymMatrix< N >::type &merr) | |
Fully Initializing Constructor. More... | |
virtual | ~KHit () |
Destructor. More... | |
void | setMeasVector (const typename KVector< N >::type &mvec) |
Set measurement vector. More... | |
void | setMeasError (const typename KSymMatrix< N >::type &merr) |
Set measurement error. More... | |
const KVector< N >::type & | getMeasVector () const |
Measurement vector. More... | |
const KSymMatrix< N >::type & | getMeasError () const |
Measurement error matrix. More... | |
const KVector< N >::type & | getPredVector () const |
Prediction vector. More... | |
const KSymMatrix< N >::type & | getPredError () const |
Prediction matrix. More... | |
const KVector< N >::type & | getResVector () const |
Residual vector. More... | |
const KSymMatrix< N >::type & | getResError () const |
Residual error matrix. More... | |
const KSymMatrix< N >::type & | getResInvError () const |
Residual inv. error matrix. More... | |
const KHMatrix< N >::type & | getH () const |
Kalman H-matrix. More... | |
double | getChisq () const |
Incremental chisquare. More... | |
bool | predict (const KETrack &tre, const Propagator *prop=0, const KTrack *ref=0) const |
Prediction method (return false if fail). More... | |
void | update (KETrack &tre) const |
Update track method. More... | |
virtual bool | subpredict (const KETrack &tre, typename KVector< N >::type &pvec, typename KSymMatrix< N >::type &perr, typename KHMatrix< N >::type &hmatrix) const =0 |
Calculate prediction function (return via arguments). More... | |
virtual std::ostream & | Print (std::ostream &out, bool doTitle=true) const |
Printout. More... | |
const std::shared_ptr< const Surface > & | getPredSurface () const |
Predition surface. More... | |
double | getPredDistance () const |
Prediction distance. More... | |
const std::shared_ptr< const Surface > & | getMeasSurface () const |
Measurement surface. More... | |
int | getMeasPlane () const |
Measurement plane index. More... | |
int | getID () const |
Unique id. More... | |
void | setMeasSurface (const std::shared_ptr< const Surface > &psurf) |
Measurement surface. More... | |
void | setMeasPlane (int plane) |
Measurement plane. More... | |
Protected Attributes | |
std::shared_ptr< const Surface > | fPredSurf |
Prediction surface. More... | |
double | fPredDist |
Prediction distance. More... | |
int | fID |
Unique id. More... | |
Private Attributes | |
KVector< N >::type | fMvec |
Measurement vector. More... | |
KSymMatrix< N >::type | fMerr |
Measurement error matrix. More... | |
KVector< N >::type | fPvec |
Prediction vector. More... | |
KSymMatrix< N >::type | fPerr |
Prediction error matrix. More... | |
KVector< N >::type | fRvec |
Residual vector. More... | |
KSymMatrix< N >::type | fRerr |
Residual error matrix. More... | |
KSymMatrix< N >::type | fRinv |
Residual inverse error matrix. More... | |
KHMatrix< N >::type | fH |
Kalman H-matrix. More... | |
double | fChisq |
Incremental chisquare. More... | |
trkf::KHit< N >::KHit | ( | ) |
trkf::KHit< N >::KHit | ( | const std::shared_ptr< const Surface > & | psurf | ) |
trkf::KHit< N >::KHit | ( | const std::shared_ptr< const Surface > & | psurf, |
const typename KVector< N >::type & | mvec, | ||
const typename KSymMatrix< N >::type & | merr | ||
) |
|
virtual |
|
inlinevirtual |
|
inline |
|
inlineinherited |
Unique id.
Definition at line 87 of file KHitBase.h.
References trkf::KHitBase::fID.
Referenced by trkf::KalmanFilterAlg::buildTrack(), trkf::KalmanFilterAlg::cleanTrack(), trkf::KalmanFilterAlg::extendTrack(), and trkf::KalmanFilterAlg::smoothTrack().
|
inline |
Measurement error matrix.
Definition at line 105 of file KHit.h.
Referenced by trkf::KHitMulti::predict().
|
inlineinherited |
Measurement plane index.
Definition at line 84 of file KHitBase.h.
References trkf::KHitBase::fMeasPlane.
Referenced by trkf::KalmanFilterAlg::buildTrack(), trkf::KalmanFilterAlg::cleanTrack(), trkf::KalmanFilterAlg::extendTrack(), and trkf::KGTrack::Print().
|
inlineinherited |
Measurement surface.
Definition at line 81 of file KHitBase.h.
References trkf::KHitBase::fMeasSurf.
Referenced by trkf::KHit< N >::predict(), trkf::KHitWireX::subpredict(), and trkf::KHitWireLine::subpredict().
|
inline |
Measurement vector.
Definition at line 102 of file KHit.h.
Referenced by trkf::KHitMulti::predict().
|
inlineinherited |
Prediction distance.
Definition at line 78 of file KHitBase.h.
References trkf::KHitBase::fPredDist.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inline |
|
inlineinherited |
Predition surface.
Definition at line 75 of file KHitBase.h.
References trkf::KHitBase::fPredSurf.
Referenced by trkf::KHitMulti::update(), and trkf::KHit< N >::update().
|
inline |
|
inline |
Residual error matrix.
Definition at line 117 of file KHit.h.
Referenced by trkf::Track3DKalmanHit::fillHistograms(), and trkf::TrackKalmanCheater::produce().
|
inline |
|
inline |
Residual vector.
Definition at line 114 of file KHit.h.
Referenced by trkf::Track3DKalmanHit::fillHistograms(), and trkf::TrackKalmanCheater::produce().
|
virtual |
Prediction method (return false if fail).
Prediction method.
Arguments;
tre - Track prediction. prop - Propagator. ref - Reference track.
Implements trkf::KHitBase.
Definition at line 215 of file KHit.h.
References trkf::Propagator::err_prop(), trkf::KHit< N >::fChisq, trkf::KHit< N >::fH, trkf::KHit< N >::fMerr, trkf::KHit< N >::fMvec, trkf::KHit< N >::fPerr, trkf::KHitBase::fPredDist, trkf::KHitBase::fPredSurf, trkf::KHit< N >::fPvec, trkf::KHit< N >::fRerr, trkf::KHit< N >::fRinv, trkf::KHit< N >::fRvec, trkf::KHitBase::getMeasSurface(), trkf::KTrack::getSurface(), trkf::KHit< N >::subpredict(), trkf::syminvert(), and trkf::Propagator::UNKNOWN.
Referenced by trkf::KHit< 1 >::getChisq(), and trkf::KHitMulti::predict().
|
virtual |
Printout.
Reimplemented from trkf::KHitBase.
Definition at line 371 of file KHit.h.
References trkf::KHit< N >::fChisq, trkf::KHit< N >::fMerr, trkf::KHit< N >::fMvec, trkf::KHit< N >::fPerr, trkf::KHit< N >::fPvec, trkf::KHit< N >::fRerr, trkf::KHit< N >::fRvec, and trkf::KHitBase::Print().
Referenced by trkf::KHit< 1 >::getChisq().
|
inline |
|
inlineinherited |
Measurement plane.
Definition at line 95 of file KHitBase.h.
References trkf::KHitBase::fMeasPlane, trkf::KHitBase::getChisq(), trkf::KHitBase::predict(), trkf::KHitBase::Print(), and trkf::KHitBase::update().
Referenced by trkf::KHitWireLine::KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
inlineinherited |
Measurement surface.
Definition at line 92 of file KHitBase.h.
References trkf::KHitBase::fMeasSurf.
Referenced by trkf::KHitWireLine::KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
inline |
|
pure virtual |
Calculate prediction function (return via arguments).
Referenced by trkf::KHit< 1 >::getChisq(), and trkf::KHit< N >::predict().
|
virtual |
Update track method.
Update track method.
Arguments:
tre - Track to be updated.
Implements trkf::KHitBase.
Definition at line 328 of file KHit.h.
References trkf::KHit< N >::fH, trkf::KHit< N >::fMerr, trkf::KHit< N >::fRinv, trkf::KHit< N >::fRvec, trkf::KETrack::getError(), trkf::KHitBase::getPredSurface(), trkf::KTrack::getSurface(), trkf::KTrack::getVector(), trkf::KETrack::setError(), and trkf::KTrack::setVector().
Referenced by trkf::KHit< 1 >::getChisq().
|
mutableprivate |
Incremental chisquare.
Definition at line 160 of file KHit.h.
Referenced by trkf::KHit< 1 >::getChisq(), trkf::KHit< N >::predict(), and trkf::KHit< N >::Print().
|
mutableprivate |
Kalman H-matrix.
Definition at line 159 of file KHit.h.
Referenced by trkf::KHit< 1 >::getH(), trkf::KHit< N >::predict(), and trkf::KHit< N >::update().
|
protectedinherited |
Unique id.
Definition at line 118 of file KHitBase.h.
Referenced by trkf::KHitBase::getID(), trkf::KHitWireLine::KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
private |
Measurement error matrix.
Definition at line 153 of file KHit.h.
Referenced by trkf::KHit< 1 >::getMeasError(), trkf::KHit< N >::predict(), trkf::KHit< N >::Print(), trkf::KHit< 1 >::setMeasError(), and trkf::KHit< N >::update().
|
private |
Measurement vector.
Definition at line 152 of file KHit.h.
Referenced by trkf::KHit< 1 >::getMeasVector(), trkf::KHit< N >::predict(), trkf::KHit< N >::Print(), and trkf::KHit< 1 >::setMeasVector().
|
mutableprivate |
Prediction error matrix.
Definition at line 155 of file KHit.h.
Referenced by trkf::KHit< 1 >::getPredError(), trkf::KHit< N >::predict(), and trkf::KHit< N >::Print().
|
mutableprotectedinherited |
Prediction distance.
Definition at line 117 of file KHitBase.h.
Referenced by trkf::KHitBase::getPredDistance(), trkf::KHitMulti::predict(), trkf::KHit< N >::predict(), and trkf::KHitBase::Print().
|
mutableprotectedinherited |
Prediction surface.
Definition at line 116 of file KHitBase.h.
Referenced by trkf::KHitBase::getPredSurface(), trkf::KHitMulti::predict(), trkf::KHit< N >::predict(), and trkf::KHitBase::Print().
|
mutableprivate |
Prediction vector.
Definition at line 154 of file KHit.h.
Referenced by trkf::KHit< 1 >::getPredVector(), trkf::KHit< N >::predict(), and trkf::KHit< N >::Print().
|
mutableprivate |
Residual error matrix.
Definition at line 157 of file KHit.h.
Referenced by trkf::KHit< 1 >::getResError(), trkf::KHit< N >::predict(), and trkf::KHit< N >::Print().
|
mutableprivate |
Residual inverse error matrix.
Definition at line 158 of file KHit.h.
Referenced by trkf::KHit< 1 >::getResInvError(), trkf::KHit< N >::predict(), and trkf::KHit< N >::update().
|
mutableprivate |
Residual vector.
Definition at line 156 of file KHit.h.
Referenced by trkf::KHit< 1 >::getResVector(), trkf::KHit< N >::predict(), trkf::KHit< N >::Print(), and trkf::KHit< N >::update().