#include <KHitMulti.h>
Public Member Functions | |
KHitMulti () | |
Default constructor. More... | |
KHitMulti (const std::shared_ptr< const Surface > &psurf) | |
Initializing Constructor – measurement surface only. More... | |
virtual | ~KHitMulti () |
Destructor. More... | |
int | getMeasDim () const |
Measurement space dimension. More... | |
const std::vector< std::shared_ptr< const KHit< 1 > > > & | getMeasVec () const |
Measurement collection. More... | |
const ublas::vector< double > & | getMeasVector () const |
Measurement vector. More... | |
const ublas::symmetric_matrix< double > & | getMeasError () const |
Measurement error matrix. More... | |
const ublas::vector< double > & | getPredVector () const |
Prediction vector. More... | |
const ublas::symmetric_matrix< double > & | getPredError () const |
Prediction matrix. More... | |
const ublas::vector< double > & | getResVector () const |
Residual vector. More... | |
const ublas::symmetric_matrix< double > & | getResError () const |
Residual error matrix. More... | |
const ublas::symmetric_matrix< double > & | getResInvError () const |
Residual inv. error matrix. More... | |
const ublas::matrix< double > & | getH () const |
Kalman H-matrix. More... | |
double | getChisq () const |
Incremental chisquare. More... | |
void | addMeas (const std::shared_ptr< const KHitBase > &pmeas) |
Add a measurement of unknown type. More... | |
void | addMeas (const std::shared_ptr< const KHit< 1 >> &pmeas) |
Add a one-dimensional measurement. 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 std::ostream & | Print (std::ostream &out, bool doTitle=true) const |
Printout. More... | |
Public Member Functions inherited from trkf::KHitBase | |
KHitBase () | |
Default constructor. More... | |
KHitBase (const std::shared_ptr< const Surface > &psurf, int plane=-1) | |
Initializing Constructor. More... | |
virtual | ~KHitBase ()=default |
Destructor. 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... | |
Private Attributes | |
int | fMeasDim |
Measurement space dimension. More... | |
std::vector< std::shared_ptr< const KHit< 1 > > > | fMeasVec |
Underlying measurements. More... | |
ublas::vector< double > | fMvec |
Measurement vector. More... | |
ublas::symmetric_matrix< double > | fMerr |
Measurement error matrix. More... | |
ublas::vector< double > | fPvec |
Prediction vector. More... | |
ublas::symmetric_matrix< double > | fPerr |
Prediction error matrix. More... | |
ublas::vector< double > | fRvec |
Residual vector. More... | |
ublas::symmetric_matrix< double > | fRerr |
Residual error matrix. More... | |
ublas::symmetric_matrix< double > | fRinv |
Residual inverse error matrix. More... | |
ublas::matrix< double > | fH |
Kalman H-matrix. More... | |
double | fChisq |
Incremental chisquare. More... | |
Additional Inherited Members | |
Protected Attributes inherited from trkf::KHitBase | |
std::shared_ptr< const Surface > | fPredSurf |
Prediction surface. More... | |
double | fPredDist |
Prediction distance. More... | |
int | fID |
Unique id. More... | |
Definition at line 53 of file KHitMulti.h.
trkf::KHitMulti::KHitMulti | ( | ) |
trkf::KHitMulti::KHitMulti | ( | const std::shared_ptr< const Surface > & | psurf | ) |
Initializing Constructor – measurement surface only.
Initializing Constructor.
Arguments:
psurf - Measurement surface pointer.
Definition at line 25 of file KHitMulti.cxx.
|
virtual |
void trkf::KHitMulti::addMeas | ( | const std::shared_ptr< const KHitBase > & | pmeas | ) |
Add a measurement of unknown type.
Add a measurement.
Arguments:
pmeas - Measurement.
This method tries to dynamic cast the measurement to a supported type. If the dynamic cast fails, throw an exception.
Definition at line 42 of file KHitMulti.cxx.
void trkf::KHitMulti::addMeas | ( | const std::shared_ptr< const KHit< 1 >> & | pmeas | ) |
Add a one-dimensional measurement.
Add a measurement.
Arguments:
pmeas - Measurement.
Definition at line 68 of file KHitMulti.cxx.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
Measurement error matrix.
Definition at line 89 of file KHitMulti.h.
|
inline |
Measurement collection.
Definition at line 75 of file KHitMulti.h.
|
inline |
|
inline |
Prediction matrix.
Definition at line 103 of file KHitMulti.h.
|
inline |
|
inline |
Residual error matrix.
Definition at line 117 of file KHitMulti.h.
|
inline |
Residual inv. error matrix.
Definition at line 124 of file KHitMulti.h.
|
inline |
|
virtual |
Prediction method (return false if fail).
Prediction method (return false if fail).
Arguments:
tre - Track hypothesis. prop - Propagator. ref - Reference track.
Returns: True if success.
This class calls the predict method of each underlying measurement and updates the combined prediction attributes.
Implements trkf::KHitBase.
Definition at line 95 of file KHitMulti.cxx.
|
virtual |
|
virtual |
Update track method.
Update track method.
Arguments:
tre - Track to be updated.
This method is almost an exact copy of the update method in KHit<N>.
Implements trkf::KHitBase.
Definition at line 202 of file KHitMulti.cxx.
|
mutableprivate |
Incremental chisquare.
Definition at line 175 of file KHitMulti.h.
|
mutableprivate |
Kalman H-matrix.
Definition at line 174 of file KHitMulti.h.
|
private |
Measurement space dimension.
Definition at line 165 of file KHitMulti.h.
|
private |
Underlying measurements.
Definition at line 166 of file KHitMulti.h.
|
mutableprivate |
Measurement error matrix.
Definition at line 168 of file KHitMulti.h.
|
mutableprivate |
Measurement vector.
Definition at line 167 of file KHitMulti.h.
|
mutableprivate |
Prediction error matrix.
Definition at line 170 of file KHitMulti.h.
|
mutableprivate |
Prediction vector.
Definition at line 169 of file KHitMulti.h.
|
mutableprivate |
Residual error matrix.
Definition at line 172 of file KHitMulti.h.
|
mutableprivate |
Residual inverse error matrix.
Definition at line 173 of file KHitMulti.h.
|
mutableprivate |
Residual vector.
Definition at line 171 of file KHitMulti.h.