CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Chi2MeasurementEstimatorBase.h
Go to the documentation of this file.
1 #ifndef CommonDet_Chi2MeasurementEstimatorBase_H
2 #define CommonDet_Chi2MeasurementEstimatorBase_H
3 
13 
15 public:
16 
22  explicit Chi2MeasurementEstimatorBase(double maxChi2, double nSigma = 3.) :
23  theMaxChi2(maxChi2), theNSigma(nSigma) {}
24 
25  virtual std::pair<bool, double> estimate(const TrajectoryStateOnSurface& ts,
26  const TransientTrackingRecHit &) const = 0;
27 
28  virtual bool estimate( const TrajectoryStateOnSurface& ts,
29  const Plane& plane) const;
30 
31  virtual Local2DVector
33  const Plane& plane) const;
34 
35  double chiSquaredCut() const {return theMaxChi2;}
36  double nSigmaCut() const {return theNSigma;}
37 
38 protected:
39 
40  std::pair<bool,double> returnIt( double est) const {
41  return est > chiSquaredCut() ? HitReturnType(false,est) : HitReturnType(true,est);
42  }
43 
44 private:
45  double theMaxChi2;
46  double theNSigma;
47 };
48 
49 #endif
std::pair< bool, double > returnIt(double est) const
Definition: Plane.h:17
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3.)
std::pair< bool, double > HitReturnType
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &) const =0
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const