Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:31:39

0001 #ifndef CommonDet_Chi2MeasurementEstimator_H
0002 #define CommonDet_Chi2MeasurementEstimator_H
0003 
0004 /** \class Chi2MeasurementEstimator
0005  *  A Chi2 Measurement Estimator. 
0006  *  Computhes the Chi^2 of a TrajectoryState with a RecHit or a 
0007  *  Plane. The TrajectoryState must have errors.
0008  *  Works for any RecHit dimension. Ported from ORCA.
0009  *
0010  *  \author todorov, cerati
0011  */
0012 
0013 #include "TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimatorBase.h"
0014 
0015 class Chi2MeasurementEstimator : public Chi2MeasurementEstimatorBase {
0016 public:
0017   using Chi2MeasurementEstimatorBase::Chi2MeasurementEstimatorBase;
0018 
0019   std::pair<bool, double> estimate(const TrajectoryStateOnSurface&, const TrackingRecHit&) const override;
0020 
0021   Chi2MeasurementEstimator* clone() const override { return new Chi2MeasurementEstimator(*this); }
0022 };
0023 
0024 #endif