23#ifndef genfit_AbsKalmanFitter_h
24#define genfit_AbsKalmanFitter_h
55 AbsKalmanFitter(
unsigned int maxIterations = 4,
double deltaPval = 1e-3,
double blowUpFactor = 1e3)
unsigned int getMaxIterations() const
double blowUpFactor_
Blow up the covariance of the forward (backward) fit by this factor before seeding the backward (forw...
unsigned int getMinIterations() const
virtual void setMaxIterations(unsigned int n)
Set the maximum number of iterations.
double getChiSqu(const Track *tr, const AbsTrackRep *rep, int direction=-1) const
unsigned int maxIterations_
Maximum number of iterations to attempt. Forward and backward are counted as one iteration.
void setBlowUpMaxVal(double blowUpMaxVal)
Limit the cov entries to this maximum value when blowing up the cov. Set to negative value to disable...
void setDeltaPval(double deltaPval)
Set Convergence criterion.
double getRedChiSqu(const Track *tr, const AbsTrackRep *rep, int direction=-1) const
void setMultipleMeasurementHandling(eMultipleMeasurementHandling mmh)
How should multiple measurements be handled?
bool canIgnoreWeights() const
returns if the fitter can ignore the weights and handle the MeasurementOnPlanes as if they had weight...
bool isTrackFitted(const Track *tr, const AbsTrackRep *rep) const
double getBlowUpFactor() const
const std::vector< MeasurementOnPlane * > getMeasurements(const KalmanFitterInfo *fi, const TrackPoint *tp, int direction) const
get the measurementsOnPlane taking the multipleMeasurementHandling_ into account
double getRelChi2Change() const
double blowUpMaxVal_
Limit the cov entries to this maxuimum value when blowing up the cov.
virtual ~AbsKalmanFitter()
void setRelChi2Change(double relChi2Change)
void getChiSquNdf(const Track *tr, const AbsTrackRep *rep, double &bChi2, double &fChi2, double &bNdf, double &fNdf) const
double deltaPval_
Convergence criterion.
eMultipleMeasurementHandling getMultipleMeasurementHandling() const
double getBlowUpMaxVal() const
int getMaxFailedHits() const
double getPVal(const Track *tr, const AbsTrackRep *rep, int direction=-1) const
virtual void setMaxFailedHits(int val)
virtual void setMinIterations(unsigned int n)
Set the minimum number of iterations.
bool getResetOffDiagonals() const
void setBlowUpFactor(double blowUpFactor)
bool resetOffDiagonals_
Reset the off-diagonals to 0 when blowing up the cov.
double getDeltaPval() const
unsigned int minIterations_
Minimum number of iterations to attempt. Forward and backward are counted as one iteration.
bool isTrackPrepared(const Track *tr, const AbsTrackRep *rep) const
eMultipleMeasurementHandling multipleMeasurementHandling_
How to handle if there are multiple MeasurementsOnPlane.
double getNdf(const Track *tr, const AbsTrackRep *rep, int direction=-1) const
AbsKalmanFitter(unsigned int maxIterations=4, double deltaPval=1e-3, double blowUpFactor=1e3)
void setResetOffDiagonals(bool resetOffDiagonals)
Abstract base class for a track representation.
Collects information needed and produced by a AbsKalmanFitter implementations and is specific to one ...
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
Object containing AbsMeasurement and AbsFitterInfo objects.
Defines for I/O streams used for error and debug printing.
eMultipleMeasurementHandling
@ weightedClosestToPrediction
@ weightedClosestToReference
@ weightedClosestToReferenceWire
@ unweightedClosestToReference
@ weightedClosestToPredictionWire
@ unweightedClosestToPredictionWire
@ unweightedClosestToPrediction
@ unweightedClosestToReferenceWire