Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:31

0001 #ifndef GsfChi2MeasurementEstimator_H
0002 #define GsfChi2MeasurementEstimator_H
0003 
0004 // #include "TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimatorBase.h"
0005 #include "TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimator.h"
0006 #include <utility>
0007 
0008 /** Class which calculates the chisquare of a predicted Gaussian mixture
0009  *  trajectory state with respect to a
0010  *  reconstructed hit according to the Gaussian-sum filter (GSF) strategy.
0011  *  The relevant formulas can be found in
0012  *  R. Fruhwirth, Computer Physics Communications 100 (1997), 1.
0013  */
0014 
0015 class GsfChi2MeasurementEstimator : public Chi2MeasurementEstimatorBase {
0016 public:
0017   GsfChi2MeasurementEstimator() : Chi2MeasurementEstimatorBase(100.), theEstimator(100.) {}
0018 
0019   GsfChi2MeasurementEstimator(double aMaxChi2) : Chi2MeasurementEstimatorBase(aMaxChi2), theEstimator(aMaxChi2) {}
0020 
0021   std::pair<bool, double> estimate(const TrajectoryStateOnSurface&, const TrackingRecHit&) const override;
0022 
0023   GsfChi2MeasurementEstimator* clone() const override { return new GsfChi2MeasurementEstimator(*this); }
0024 
0025 private:
0026   Chi2MeasurementEstimator theEstimator;
0027 };
0028 
0029 #endif