GENFIT  Rev:NoNumberAvailable
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Public Member Functions | Private Attributes | List of all members
genfit::KalmanFitterInfo Class Reference

Collects information needed and produced by a AbsKalmanFitter implementations and is specific to one AbsTrackRep of the Track. More...

#include <KalmanFitterInfo.h>

Inheritance diagram for genfit::KalmanFitterInfo:
Inheritance graph
Collaboration diagram for genfit::KalmanFitterInfo:
Collaboration graph

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...
 
double getSmoothedChi2 (unsigned int iMeasurement=0)
 
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
 
- Public Member Functions inherited from genfit::AbsFitterInfo
 AbsFitterInfo ()
 
 AbsFitterInfo (const TrackPoint *trackPoint, const AbsTrackRep *rep)
 
virtual ~AbsFitterInfo ()
 
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)
 

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_
 

Additional Inherited Members

- Protected Attributes inherited from genfit::AbsFitterInfo
const TrackPoint * trackPoint_
 
const AbsTrackRep * rep_
 No ownership. More...
 
SharedPlanePtr sharedPlane_
 No ownership. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

genfit::KalmanFitterInfo::KalmanFitterInfo ( )

Definition at line 37 of file KalmanFitterInfo.cc.

Referenced by clone().

genfit::KalmanFitterInfo::KalmanFitterInfo ( const TrackPoint *  trackPoint,
const AbsTrackRep *  rep 
)

Definition at line 43 of file KalmanFitterInfo.cc.

genfit::KalmanFitterInfo::~KalmanFitterInfo ( )
virtual

Definition at line 49 of file KalmanFitterInfo.cc.

References deleteMeasurementInfo().

Member Function Documentation

void genfit::KalmanFitterInfo::addMeasurementOnPlane ( MeasurementOnPlane *  measurementOnPlane)
void genfit::KalmanFitterInfo::addMeasurementsOnPlane ( const std::vector< genfit::MeasurementOnPlane * > &  measurementsOnPlane)

Definition at line 432 of file KalmanFitterInfo.cc.

References addMeasurementOnPlane().

Referenced by genfit::KalmanFitterRefTrack::prepareTrack().

bool genfit::KalmanFitterInfo::areWeightsFixed ( ) const
inline

Are the weights fixed?

Definition at line 74 of file KalmanFitterInfo.h.

References fixWeights_.

Referenced by genfit::DAF::calcWeights(), and genfit::KalmanFitterRefTrack::prepareTrack().

bool genfit::KalmanFitterInfo::checkConsistency ( const genfit::PruneFlags *  flags = NULL) const
virtual
KalmanFitterInfo * genfit::KalmanFitterInfo::clone ( ) const
virtual
void genfit::KalmanFitterInfo::deleteBackwardInfo ( )
virtual
void genfit::KalmanFitterInfo::deleteForwardInfo ( )
virtual
void genfit::KalmanFitterInfo::deleteMeasurementInfo ( )
virtual
void genfit::KalmanFitterInfo::deletePredictions ( )
void genfit::KalmanFitterInfo::deleteReferenceInfo ( )
inlinevirtual
void genfit::KalmanFitterInfo::fixWeights ( bool  arg = true)
inline
MeasurementOnPlane genfit::KalmanFitterInfo::getAvgWeightedMeasurementOnPlane ( bool  ignoreWeights = false) const

Get weighted mean of all measurements.

Parameters
ignoreWeightsIf set, the weights of the individual measurements will be ignored (they will be treated as if they all had weight 1)

Definition at line 78 of file KalmanFitterInfo.cc.

References genfit::MeasuredStateOnPlane::getCov(), genfit::AbsFitterInfo::getPlane(), genfit::StateOnPlane::getState(), genfit::tools::invertMatrix(), measurementsOnPlane_, and genfit::MeasurementOnPlane::setWeight().

MeasuredStateOnPlane* genfit::KalmanFitterInfo::getBackwardPrediction ( ) const
inline

Definition at line 58 of file KalmanFitterInfo.h.

References backwardPrediction_.

Referenced by clone(), and genfit::KalmanFitterRefTrack::processTrackWithRep().

KalmanFittedStateOnPlane* genfit::KalmanFitterInfo::getBackwardUpdate ( ) const
inline
MeasurementOnPlane * genfit::KalmanFitterInfo::getClosestMeasurementOnPlane ( const StateOnPlane *  sop) const
const MeasuredStateOnPlane & genfit::KalmanFitterInfo::getFittedState ( bool  biased = true) const
virtual
MeasuredStateOnPlane* genfit::KalmanFitterInfo::getForwardPrediction ( ) const
inline

Definition at line 57 of file KalmanFitterInfo.h.

References forwardPrediction_.

Referenced by clone().

KalmanFittedStateOnPlane* genfit::KalmanFitterInfo::getForwardUpdate ( ) const
inline
MeasurementOnPlane* genfit::KalmanFitterInfo::getMeasurementOnPlane ( int  i = 0) const
inline
const std::vector< genfit::MeasurementOnPlane* >& genfit::KalmanFitterInfo::getMeasurementsOnPlane ( ) const
inline

Definition at line 63 of file KalmanFitterInfo.h.

References measurementsOnPlane_.

Referenced by genfit::AbsKalmanFitter::getMeasurements().

unsigned int genfit::KalmanFitterInfo::getNumMeasurements ( ) const
inline
MeasuredStateOnPlane* genfit::KalmanFitterInfo::getPrediction ( int  direction) const
inline
ReferenceStateOnPlane* genfit::KalmanFitterInfo::getReferenceState ( ) const
inline
MeasurementOnPlane genfit::KalmanFitterInfo::getResidual ( unsigned int  iMeasurement = 0,
bool  biased = false,
bool  onlyMeasurementErrors = true 
) const
virtual
double genfit::KalmanFitterInfo::getSmoothedChi2 ( unsigned int  iMeasurement = 0)
KalmanFittedStateOnPlane* genfit::KalmanFitterInfo::getUpdate ( int  direction) const
inline
std::vector< double > genfit::KalmanFitterInfo::getWeights ( ) const
bool genfit::KalmanFitterInfo::hasBackwardPrediction ( ) const
inlinevirtual
bool genfit::KalmanFitterInfo::hasBackwardUpdate ( ) const
inlinevirtual
bool genfit::KalmanFitterInfo::hasForwardPrediction ( ) const
inlinevirtual
bool genfit::KalmanFitterInfo::hasForwardUpdate ( ) const
inlinevirtual
bool genfit::KalmanFitterInfo::hasMeasurements ( ) const
inlinevirtual

Implements genfit::AbsFitterInfo.

Definition at line 81 of file KalmanFitterInfo.h.

References getNumMeasurements().

bool genfit::KalmanFitterInfo::hasPredictionsAndUpdates ( ) const
inline
bool genfit::KalmanFitterInfo::hasReferenceState ( ) const
inlinevirtual
bool genfit::KalmanFitterInfo::hasUpdate ( int  direction) const
inlinevirtual

Reimplemented from genfit::AbsFitterInfo.

Definition at line 87 of file KalmanFitterInfo.h.

References hasBackwardUpdate(), and hasForwardUpdate().

Referenced by genfit::KalmanFitterRefTrack::fitTrack().

void genfit::KalmanFitterInfo::Print ( const Option_t *  = "") const
virtual
void genfit::KalmanFitterInfo::setBackwardPrediction ( MeasuredStateOnPlane *  backwardPrediction)
void genfit::KalmanFitterInfo::setBackwardUpdate ( KalmanFittedStateOnPlane *  backwardUpdate)
void genfit::KalmanFitterInfo::setForwardPrediction ( MeasuredStateOnPlane *  forwardPrediction)
void genfit::KalmanFitterInfo::setForwardUpdate ( KalmanFittedStateOnPlane *  forwardUpdate)
void genfit::KalmanFitterInfo::setMeasurementsOnPlane ( const std::vector< genfit::MeasurementOnPlane * > &  measurementsOnPlane)

Definition at line 416 of file KalmanFitterInfo.cc.

References addMeasurementOnPlane(), and deleteMeasurementInfo().

void genfit::KalmanFitterInfo::setPrediction ( MeasuredStateOnPlane *  prediction,
int  direction 
)
inline
void genfit::KalmanFitterInfo::setReferenceState ( ReferenceStateOnPlane *  referenceState)
void genfit::KalmanFitterInfo::setRep ( const AbsTrackRep *  rep)
virtual
void genfit::KalmanFitterInfo::setUpdate ( KalmanFittedStateOnPlane *  update,
int  direction 
)
inline
void genfit::KalmanFitterInfo::setWeights ( const std::vector< double > &  weights)

Member Data Documentation

boost::scoped_ptr<MeasuredStateOnPlane> genfit::KalmanFitterInfo::backwardPrediction_
private
boost::scoped_ptr<KalmanFittedStateOnPlane> genfit::KalmanFitterInfo::backwardUpdate_
private
boost::scoped_ptr<MeasuredStateOnPlane> genfit::KalmanFitterInfo::fittedStateBiased_
mutableprivate
boost::scoped_ptr<MeasuredStateOnPlane> genfit::KalmanFitterInfo::fittedStateUnbiased_
mutableprivate
bool genfit::KalmanFitterInfo::fixWeights_
private

Definition at line 152 of file KalmanFitterInfo.h.

Referenced by areWeightsFixed(), clone(), fixWeights(), Print(), and setWeights().

boost::scoped_ptr<MeasuredStateOnPlane> genfit::KalmanFitterInfo::forwardPrediction_
private
boost::scoped_ptr<KalmanFittedStateOnPlane> genfit::KalmanFitterInfo::forwardUpdate_
private
std::vector<MeasurementOnPlane*> genfit::KalmanFitterInfo::measurementsOnPlane_
private
boost::scoped_ptr<ReferenceStateOnPlane> genfit::KalmanFitterInfo::referenceState_
private

Reference state. Used by KalmanFitterRefTrack.

Definition at line 120 of file KalmanFitterInfo.h.

Referenced by checkConsistency(), getReferenceState(), hasReferenceState(), Print(), setReferenceState(), and setRep().


The documentation for this class was generated from the following files: