FairRoot/PandaRoot
|
Collects information needed and produced by a AbsKalmanFitter implementations and is specific to one AbsTrackRep of the Track. More...
#include <KalmanFitterInfo.h>
Public Member Functions | |
KalmanFitterInfo () | |
KalmanFitterInfo (const TrackPoint *trackPoint, const AbsTrackRep *rep) | |
virtual | ~KalmanFitterInfo () |
virtual KalmanFitterInfo * | clone () const |
Deep copy ctor for polymorphic class. More... | |
ReferenceStateOnPlane * | getReferenceState () const |
MeasuredStateOnPlane * | getForwardPrediction () const |
MeasuredStateOnPlane * | getBackwardPrediction () const |
MeasuredStateOnPlane * | getPrediction (int direction) const |
KalmanFittedStateOnPlane * | getForwardUpdate () const |
KalmanFittedStateOnPlane * | getBackwardUpdate () const |
KalmanFittedStateOnPlane * | getUpdate (int direction) const |
const std::vector < genfit::MeasurementOnPlane * > & | getMeasurementsOnPlane () const |
MeasurementOnPlane * | getMeasurementOnPlane (int i=0) const |
MeasurementOnPlane | getAvgWeightedMeasurementOnPlane (bool ignoreWeights=false) const |
MeasurementOnPlane * | getClosestMeasurementOnPlane (const StateOnPlane *) const |
Get measurements which is closest to state. More... | |
unsigned int | getNumMeasurements () const |
std::vector< double > | getWeights () const |
Get weights of measurements. More... | |
bool | areWeightsFixed () const |
Are the weights fixed? More... | |
const MeasuredStateOnPlane & | getFittedState (bool biased=true) const |
Get unbiased or biased (default) smoothed state. More... | |
MeasurementOnPlane | getResidual (unsigned int iMeasurement=0, bool biased=false, bool onlyMeasurementErrors=true) const |
Get unbiased (default) or biased residual from ith measurement. More... | |
bool | hasMeasurements () const |
bool | hasReferenceState () const |
bool | hasForwardPrediction () const |
bool | hasBackwardPrediction () const |
bool | hasForwardUpdate () const |
bool | hasBackwardUpdate () const |
bool | hasUpdate (int direction) const |
bool | hasPredictionsAndUpdates () const |
void | setReferenceState (ReferenceStateOnPlane *referenceState) |
void | setForwardPrediction (MeasuredStateOnPlane *forwardPrediction) |
void | setBackwardPrediction (MeasuredStateOnPlane *backwardPrediction) |
void | setPrediction (MeasuredStateOnPlane *prediction, int direction) |
void | setForwardUpdate (KalmanFittedStateOnPlane *forwardUpdate) |
void | setBackwardUpdate (KalmanFittedStateOnPlane *backwardUpdate) |
void | setUpdate (KalmanFittedStateOnPlane *update, int direction) |
void | setMeasurementsOnPlane (const std::vector< genfit::MeasurementOnPlane * > &measurementsOnPlane) |
void | addMeasurementOnPlane (MeasurementOnPlane *measurementOnPlane) |
void | addMeasurementsOnPlane (const std::vector< genfit::MeasurementOnPlane * > &measurementsOnPlane) |
void | setWeights (const std::vector< double > &) |
Set weights of measurements. More... | |
void | fixWeights (bool arg=true) |
void | setRep (const AbsTrackRep *rep) |
void | deleteForwardInfo () |
void | deleteBackwardInfo () |
void | deletePredictions () |
void | deleteReferenceInfo () |
void | deleteMeasurementInfo () |
virtual void | Print (const Option_t *="") const |
virtual bool | checkConsistency (const genfit::PruneFlags *=NULL) const |
const TrackPoint * | getTrackPoint () const |
const AbsTrackRep * | getRep () const |
void | setTrackPoint (const TrackPoint *tp) |
virtual bool | hasPrediction (int direction) const |
const SharedPlanePtr & | getPlane () const |
void | setPlane (const SharedPlanePtr &plane) |
Protected Attributes | |
const TrackPoint * | trackPoint_ |
const AbsTrackRep * | rep_ |
No ownership. More... | |
SharedPlanePtr | sharedPlane_ |
No ownership. More... | |
Private Attributes | |
boost::scoped_ptr < ReferenceStateOnPlane > | referenceState_ |
Reference state. Used by KalmanFitterRefTrack. More... | |
boost::scoped_ptr < MeasuredStateOnPlane > | forwardPrediction_ |
boost::scoped_ptr < KalmanFittedStateOnPlane > | forwardUpdate_ |
boost::scoped_ptr < MeasuredStateOnPlane > | backwardPrediction_ |
boost::scoped_ptr < KalmanFittedStateOnPlane > | backwardUpdate_ |
boost::scoped_ptr < MeasuredStateOnPlane > | fittedStateUnbiased_ |
boost::scoped_ptr < MeasuredStateOnPlane > | fittedStateBiased_ |
cache More... | |
std::vector< MeasurementOnPlane * > | measurementsOnPlane_ |
cache More... | |
bool | fixWeights_ |
Collects information needed and produced by a AbsKalmanFitter implementations and is specific to one AbsTrackRep of the Track.
Definition at line 46 of file KalmanFitterInfo.h.
genfit::KalmanFitterInfo::KalmanFitterInfo | ( | ) |
genfit::KalmanFitterInfo::KalmanFitterInfo | ( | const TrackPoint * | trackPoint, |
const AbsTrackRep * | rep | ||
) |
|
virtual |
void genfit::KalmanFitterInfo::addMeasurementOnPlane | ( | MeasurementOnPlane * | measurementOnPlane | ) |
void genfit::KalmanFitterInfo::addMeasurementsOnPlane | ( | const std::vector< genfit::MeasurementOnPlane * > & | measurementsOnPlane | ) |
|
inline |
|
virtual |
Implements genfit::AbsFitterInfo.
|
virtual |
Deep copy ctor for polymorphic class.
Implements genfit::AbsFitterInfo.
|
virtual |
Implements genfit::AbsFitterInfo.
|
virtual |
Implements genfit::AbsFitterInfo.
|
virtual |
Implements genfit::AbsFitterInfo.
void genfit::KalmanFitterInfo::deletePredictions | ( | ) |
|
inlinevirtual |
Implements genfit::AbsFitterInfo.
Definition at line 107 of file KalmanFitterInfo.h.
References setReferenceState().
|
inline |
MeasurementOnPlane genfit::KalmanFitterInfo::getAvgWeightedMeasurementOnPlane | ( | bool | ignoreWeights = false | ) | const |
Get weighted mean of all measurements.
ignoreWeights | If set, the weights of the individual measurements will be ignored (they will be treated as if they all had weight 1) |
|
inline |
Definition at line 58 of file KalmanFitterInfo.h.
References backwardPrediction_.
|
inline |
Definition at line 61 of file KalmanFitterInfo.h.
References backwardUpdate_.
MeasurementOnPlane* genfit::KalmanFitterInfo::getClosestMeasurementOnPlane | ( | const StateOnPlane * | ) | const |
Get measurements which is closest to state.
|
virtual |
Get unbiased or biased (default) smoothed state.
Implements genfit::AbsFitterInfo.
|
inline |
Definition at line 57 of file KalmanFitterInfo.h.
References forwardPrediction_.
|
inline |
Definition at line 60 of file KalmanFitterInfo.h.
References forwardUpdate_.
|
inline |
Definition at line 64 of file KalmanFitterInfo.h.
References i, and measurementsOnPlane_.
|
inline |
Definition at line 63 of file KalmanFitterInfo.h.
References measurementsOnPlane_.
|
inline |
Definition at line 70 of file KalmanFitterInfo.h.
References measurementsOnPlane_.
Referenced by hasMeasurements().
|
inlineinherited |
Definition at line 74 of file AbsFitterInfo.h.
References genfit::AbsFitterInfo::sharedPlane_.
|
inline |
Definition at line 59 of file KalmanFitterInfo.h.
References backwardPrediction_, and forwardPrediction_.
|
inline |
Definition at line 56 of file KalmanFitterInfo.h.
References referenceState_.
|
inlineinherited |
|
virtual |
Get unbiased (default) or biased residual from ith measurement.
Implements genfit::AbsFitterInfo.
|
inlineinherited |
|
inline |
Definition at line 62 of file KalmanFitterInfo.h.
References backwardUpdate_, and forwardUpdate_.
std::vector<double> genfit::KalmanFitterInfo::getWeights | ( | ) | const |
Get weights of measurements.
|
inlinevirtual |
Implements genfit::AbsFitterInfo.
Definition at line 83 of file KalmanFitterInfo.h.
References backwardPrediction_.
Referenced by hasPredictionsAndUpdates().
|
inlinevirtual |
Implements genfit::AbsFitterInfo.
Definition at line 85 of file KalmanFitterInfo.h.
References backwardUpdate_.
Referenced by hasPredictionsAndUpdates(), and hasUpdate().
|
inlinevirtual |
Implements genfit::AbsFitterInfo.
Definition at line 82 of file KalmanFitterInfo.h.
References forwardPrediction_.
Referenced by hasPredictionsAndUpdates().
|
inlinevirtual |
Implements genfit::AbsFitterInfo.
Definition at line 84 of file KalmanFitterInfo.h.
References forwardUpdate_.
Referenced by hasPredictionsAndUpdates(), and hasUpdate().
|
inlinevirtual |
Implements genfit::AbsFitterInfo.
Definition at line 80 of file KalmanFitterInfo.h.
References getNumMeasurements().
|
inlinevirtualinherited |
Definition at line 64 of file AbsFitterInfo.h.
References genfit::AbsFitterInfo::hasBackwardPrediction(), and genfit::AbsFitterInfo::hasForwardPrediction().
|
inline |
Definition at line 87 of file KalmanFitterInfo.h.
References hasBackwardPrediction(), hasBackwardUpdate(), hasForwardPrediction(), and hasForwardUpdate().
|
inlinevirtual |
Implements genfit::AbsFitterInfo.
Definition at line 81 of file KalmanFitterInfo.h.
References referenceState_.
|
inlinevirtual |
Reimplemented from genfit::AbsFitterInfo.
Definition at line 86 of file KalmanFitterInfo.h.
References hasBackwardUpdate(), and hasForwardUpdate().
|
virtual |
Reimplemented from genfit::AbsFitterInfo.
void genfit::KalmanFitterInfo::setBackwardPrediction | ( | MeasuredStateOnPlane * | backwardPrediction | ) |
Referenced by setPrediction().
void genfit::KalmanFitterInfo::setBackwardUpdate | ( | KalmanFittedStateOnPlane * | backwardUpdate | ) |
Referenced by setUpdate().
void genfit::KalmanFitterInfo::setForwardPrediction | ( | MeasuredStateOnPlane * | forwardPrediction | ) |
Referenced by setPrediction().
void genfit::KalmanFitterInfo::setForwardUpdate | ( | KalmanFittedStateOnPlane * | forwardUpdate | ) |
Referenced by setUpdate().
void genfit::KalmanFitterInfo::setMeasurementsOnPlane | ( | const std::vector< genfit::MeasurementOnPlane * > & | measurementsOnPlane | ) |
|
inlineinherited |
Definition at line 78 of file AbsFitterInfo.h.
References genfit::AbsFitterInfo::sharedPlane_.
|
inline |
Definition at line 92 of file KalmanFitterInfo.h.
References setBackwardPrediction(), and setForwardPrediction().
void genfit::KalmanFitterInfo::setReferenceState | ( | ReferenceStateOnPlane * | referenceState | ) |
Referenced by deleteReferenceInfo().
|
virtual |
Reimplemented from genfit::AbsFitterInfo.
|
inlineinherited |
|
inline |
Definition at line 95 of file KalmanFitterInfo.h.
References setBackwardUpdate(), and setForwardUpdate().
void genfit::KalmanFitterInfo::setWeights | ( | const std::vector< double > & | ) |
Set weights of measurements.
|
private |
Definition at line 122 of file KalmanFitterInfo.h.
Referenced by getBackwardPrediction(), getPrediction(), and hasBackwardPrediction().
|
private |
Definition at line 123 of file KalmanFitterInfo.h.
Referenced by getBackwardUpdate(), getUpdate(), and hasBackwardUpdate().
|
mutableprivate |
cache
Definition at line 125 of file KalmanFitterInfo.h.
|
mutableprivate |
Definition at line 124 of file KalmanFitterInfo.h.
|
private |
Definition at line 151 of file KalmanFitterInfo.h.
Referenced by areWeightsFixed(), and fixWeights().
|
private |
Definition at line 120 of file KalmanFitterInfo.h.
Referenced by getForwardPrediction(), getPrediction(), and hasForwardPrediction().
|
private |
Definition at line 121 of file KalmanFitterInfo.h.
Referenced by getForwardUpdate(), getUpdate(), and hasForwardUpdate().
|
private |
cache
Definition at line 150 of file KalmanFitterInfo.h.
Referenced by getMeasurementOnPlane(), getMeasurementsOnPlane(), and getNumMeasurements().
|
private |
Reference state. Used by KalmanFitterRefTrack.
Definition at line 119 of file KalmanFitterInfo.h.
Referenced by getReferenceState(), and hasReferenceState().
|
protectedinherited |
No ownership.
Pointer to AbsTrackRep with respect to which the FitterInfo is defined
Definition at line 92 of file AbsFitterInfo.h.
Referenced by genfit::AbsFitterInfo::getRep(), and genfit::AbsFitterInfo::setRep().
|
protectedinherited |
No ownership.
Definition at line 94 of file AbsFitterInfo.h.
Referenced by genfit::AbsFitterInfo::getPlane(), and genfit::AbsFitterInfo::setPlane().
|
protectedinherited |
Pointer to TrackPoint where the FitterInfo belongs to
Definition at line 88 of file AbsFitterInfo.h.
Referenced by genfit::AbsFitterInfo::getTrackPoint(), and genfit::AbsFitterInfo::setTrackPoint().