LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "KHitWireLine.h"
Public Member Functions | |
KHitWireLine (const art::Ptr< recob::Hit > &hit, const std::shared_ptr< const Surface > &psurf) | |
Constructor from Hit. More... | |
KHitWireLine (const geo::WireID &wireid, double x, double xerr) | |
Constructor from wire id (mainly for testing). More... | |
virtual | ~KHitWireLine () |
Destructor. More... | |
const art::Ptr< recob::Hit > & | getHit () const |
Get original hit. More... | |
virtual bool | subpredict (const KETrack &tre, KVector< 1 >::type &pvec, KSymMatrix< 1 >::type &perr, KHMatrix< 1 >::type &hmatrix) const |
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 | |
art::Ptr< recob::Hit > | fHit |
Definition at line 30 of file KHitWireLine.h.
trkf::KHitWireLine::KHitWireLine | ( | const art::Ptr< recob::Hit > & | hit, |
const std::shared_ptr< const Surface > & | psurf | ||
) |
Constructor from Hit.
Constructor.
Arguments:
hit - Hit. psurf - Measurement surface (can be null).
The measurement surface is only a suggestion. It is allowed to be specified to allow measurements to whare surfaces to save memory.
Definition at line 31 of file KHitWireLine.cxx.
References recob::Hit::Channel(), detinfo::DetectorProperties::ConvertTicksToX(), geo::CryostatID::Cryostat, trkf::KHitBase::fID, detinfo::DetectorProperties::GetXTicksCoefficient(), trkf::SurfYZLine::isEqual(), recob::Hit::PeakTime(), geo::PlaneID::Plane, trkf::KHit< 1 >::setMeasError(), trkf::KHitBase::setMeasPlane(), trkf::KHitBase::setMeasSurface(), trkf::KHit< 1 >::setMeasVector(), recob::Hit::SigmaPeakTime(), geo::TPCID::TPC, recob::Hit::WireID(), and x.
trkf::KHitWireLine::KHitWireLine | ( | const geo::WireID & | wireid, |
double | x, | ||
double | xerr | ||
) |
Constructor from wire id (mainly for testing).
Constructor.
Arguments:
wireid - Wire id. x - X coordinate. xerr - X error.
Definition at line 97 of file KHitWireLine.cxx.
References geo::PlaneID::Plane, trkf::KHit< 1 >::setMeasError(), trkf::KHitBase::setMeasPlane(), and trkf::KHit< 1 >::setMeasVector().
|
virtual |
|
inlinevirtualinherited |
Incremental chisquare.
Implements trkf::KHitBase.
Definition at line 126 of file KHit.h.
References trkf::KHit< N >::fChisq, trkf::KHit< N >::predict(), trkf::KHit< N >::Print(), trkf::KHit< N >::subpredict(), and trkf::KHit< N >::update().
|
inlineinherited |
|
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().
|
inlineinherited |
|
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(), subpredict(), and trkf::KHitWireX::subpredict().
|
inlineinherited |
|
inlineinherited |
Prediction distance.
Definition at line 78 of file KHitBase.h.
References trkf::KHitBase::fPredDist.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inlineinherited |
|
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().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Residual inv. error matrix.
Definition at line 120 of file KHit.h.
References trkf::KHit< N >::fRinv.
|
inlineinherited |
|
virtualinherited |
Prediction method (return false if fail).
Prediction method.
Arguments;
tre - Track prediction. prop - Propagator. ref - Reference track.
Implements trkf::KHitBase.
|
virtualinherited |
Printout.
Reimplemented from trkf::KHitBase.
|
inlineinherited |
Set measurement error.
Definition at line 97 of file KHit.h.
References trkf::KHit< N >::fMerr.
Referenced by KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
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 KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
inlineinherited |
Measurement surface.
Definition at line 92 of file KHitBase.h.
References trkf::KHitBase::fMeasSurf.
Referenced by KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
inlineinherited |
Set measurement vector.
Definition at line 94 of file KHit.h.
References trkf::KHit< N >::fMvec.
Referenced by KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
virtual |
Definition at line 123 of file KHitWireLine.cxx.
References trkf::KETrack::getError(), trkf::KHitBase::getMeasSurface(), trkf::KTrack::getSurface(), trkf::KTrack::getVector(), and geo::GeometryCore::WirePitch().
Referenced by getHit().
|
pure virtualinherited |
Calculate prediction function (return via arguments).
|
virtualinherited |
Update track method.
Update track method.
Arguments:
tre - Track to be updated.
Implements trkf::KHitBase.
|
private |
Definition at line 61 of file KHitWireLine.h.
Referenced by getHit().
|
protectedinherited |
Unique id.
Definition at line 118 of file KHitBase.h.
Referenced by trkf::KHitBase::getID(), KHitWireLine(), and trkf::KHitWireX::KHitWireX().
|
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().