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