CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ConversionBarrelEstimator.h
Go to the documentation of this file.
1 #ifndef RecoEGAMMA_ConversionBarrelEstimator_H
2 #define RecoEGAMMA_ConversionBarrelEstimator_H
3 
13 
15 class RecHit;
16 class Plane;
17 
19 public:
21  ConversionBarrelEstimator(float phiRangeMin, float phiRangeMax, float zRangeMin, float zRangeMax, double nSigma = 3.)
22  : thePhiRangeMin(phiRangeMin),
23  thePhiRangeMax(phiRangeMax),
24  theZRangeMin(zRangeMin),
25  theZRangeMax(zRangeMax),
26  theNSigma(nSigma) {
27  // std::cout << " ConversionBarrelEstimator CTOR " << std::endl;
28  }
29 
30  // zero value indicates incompatible ts - hit pair
31  std::pair<bool, double> estimate(const TrajectoryStateOnSurface& ts, const TrackingRecHit& hit) const override;
32  bool estimate(const TrajectoryStateOnSurface& ts, const Plane& plane) const override;
33  ConversionBarrelEstimator* clone() const override { return new ConversionBarrelEstimator(*this); }
34 
35  Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface& ts, const Plane& plane) const override;
36 
37  double nSigmaCut() const { return theNSigma; }
38 
39 private:
42  float theZRangeMin;
43  float theZRangeMax;
44  double theNSigma;
45 };
46 
47 #endif // ConversionBarrelEstimator_H
ConversionBarrelEstimator * clone() const override
Definition: Plane.h:16
Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const override
std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const override
ConversionBarrelEstimator(float phiRangeMin, float phiRangeMax, float zRangeMin, float zRangeMax, double nSigma=3.)