LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "KHitWireX.h"
Public Member Functions | |
KHitWireX (const detinfo::DetectorPropertiesData &detProp, const art::Ptr< recob::Hit > &hit, const std::shared_ptr< const Surface > &psurf) | |
Constructor from Hit. More... | |
KHitWireX (const geo::WireID &wireid, double x, double xerr) | |
Constructor from wire id (mainly for testing). More... | |
const art::Ptr< recob::Hit > & | getHit () const |
Get original hit. More... | |
bool | subpredict (const KETrack &tre, KVector< 1 >::type &pvec, KSymMatrix< 1 >::type &perr, KHMatrix< 1 >::type &hmatrix) const override |
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, 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 34 of file KHitWireX.h.
trkf::KHitWireX::KHitWireX | ( | const detinfo::DetectorPropertiesData & | detProp, |
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 30 of file KHitWireX.cxx.
References util::abs(), recob::Hit::Channel(), detinfo::DetectorPropertiesData::ConvertTicksToX(), geo::CryostatID::Cryostat, trkf::KHitBase::fID, detinfo::DetectorPropertiesData::GetXTicksCoefficient(), trkf::SurfYZPlane::isEqual(), recob::Hit::PeakTime(), geo::PlaneID::Plane, recob::Hit::RMS(), trkf::KHit< 1 >::setMeasError(), trkf::KHitBase::setMeasPlane(), trkf::KHitBase::setMeasSurface(), trkf::KHit< 1 >::setMeasVector(), geo::TPCID::TPC, recob::Hit::WireID(), and x.
trkf::KHitWireX::KHitWireX | ( | 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 93 of file KHitWireX.cxx.
References geo::PlaneID::Plane, trkf::KHit< 1 >::setMeasError(), trkf::KHitBase::setMeasPlane(), and trkf::KHit< 1 >::setMeasVector().
|
inlinevirtualinherited |
Incremental chisquare.
Implements trkf::KHitBase.
Definition at line 125 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 |
Get original hit.
Definition at line 47 of file KHitWireX.h.
Referenced by trkf::SpacePointAlg::fillSpacePoints().
|
inlineinherited |
Unique id.
Definition at line 88 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 85 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 82 of file KHitBase.h.
References trkf::KHitBase::fMeasSurf.
Referenced by trkf::KHit< N >::predict(), trkf::KHitWireLine::subpredict(), and subpredict().
|
inlineinherited |
|
inlineinherited |
Prediction distance.
Definition at line 79 of file KHitBase.h.
References trkf::KHitBase::fPredDist.
Referenced by trkf::KalmanFilterAlg::buildTrack(), and trkf::KalmanFilterAlg::extendTrack().
|
inlineinherited |
|
inlineinherited |
Predition surface.
Definition at line 76 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 119 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 96 of file KHit.h.
References trkf::KHit< N >::fMerr.
Referenced by trkf::KHitWireLine::KHitWireLine(), and KHitWireX().
|
inlineinherited |
Measurement plane.
Definition at line 96 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 KHitWireX().
|
inlineinherited |
Measurement surface.
Definition at line 93 of file KHitBase.h.
References trkf::KHitBase::fMeasSurf.
Referenced by trkf::KHitWireLine::KHitWireLine(), and KHitWireX().
|
inlineinherited |
Set measurement vector.
Definition at line 93 of file KHit.h.
References trkf::KHit< N >::fMvec.
Referenced by trkf::KHitWireLine::KHitWireLine(), and KHitWireX().
|
override |
Definition at line 114 of file KHitWireX.cxx.
References trkf::KETrack::getError(), trkf::KHitBase::getMeasSurface(), trkf::KTrack::getSurface(), trkf::KTrack::getVector(), util::size(), and geo::GeometryCore::WirePitch().
|
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 58 of file KHitWireX.h.
|
protectedinherited |
Unique id.
Definition at line 119 of file KHitBase.h.
Referenced by trkf::KHitBase::getID(), trkf::KHitWireLine::KHitWireLine(), and KHitWireX().
|
mutableprotectedinherited |
Prediction distance.
Definition at line 118 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 117 of file KHitBase.h.
Referenced by trkf::KHitBase::getPredSurface(), trkf::KHitMulti::predict(), trkf::KHit< N >::predict(), and trkf::KHitBase::Print().