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 
14 
16 public:
17 
23  explicit Chi2MeasurementEstimatorBase(double maxChi2, double nSigma = 3.) :
24  theMaxChi2(maxChi2), theNSigma(nSigma) {}
25 
26  virtual std::pair<bool, double> estimate(const TrajectoryStateOnSurface& ts,
27  const TransientTrackingRecHit &) const = 0;
28 
29  virtual bool estimate( const TrajectoryStateOnSurface& ts,
30  const BoundPlane& plane) const;
31 
32  virtual Local2DVector
34  const BoundPlane& plane) const;
35 
36  double chiSquaredCut() const {return theMaxChi2;}
37  double nSigmaCut() const {return theNSigma;}
38 
39 protected:
40 
41  std::pair<bool,double> returnIt( double est) const {
42  return est > chiSquaredCut() ? HitReturnType(false,est) : HitReturnType(true,est);
43  }
44 
45 private:
46  double theMaxChi2;
47  double theNSigma;
48 };
49 
50 #endif
std::pair< bool, double > returnIt(double est) const
Chi2MeasurementEstimatorBase(double maxChi2, double nSigma=3.)
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const BoundPlane &plane) const
std::pair< bool, double > HitReturnType
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TransientTrackingRecHit &) const =0