test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConversionForwardEstimator.h
Go to the documentation of this file.
1 #ifndef RecoEGAMMA_ConversionForwardEstimator_H
2 #define RecoEGAMMA_ConversionForwardEstimator_H
3 
14 
15 
16 #include <iostream>
17 class RecHit;
19 class Plane;
20 
22 public:
24  ConversionForwardEstimator( float phiRangeMin, float phiRangeMax, float dr, double nSigma = 3. ) :
25  thePhiRangeMin( phiRangeMin), thePhiRangeMax( phiRangeMax), dr_(dr), theNSigma(nSigma) {
26  //std::cout << " ConversionForwardEstimator CTOR " << std::endl;
27 }
28 
29  // zero value indicates incompatible ts - hit pair
30  virtual std::pair<bool,double> estimate( const TrajectoryStateOnSurface& ts,
31  const TrackingRecHit& hit) const;
32  virtual bool estimate( const TrajectoryStateOnSurface& ts,
33  const Plane& plane) const;
34  virtual ConversionForwardEstimator* clone() const {
35  return new ConversionForwardEstimator(*this);
36  }
37 
38 
39 virtual Local2DVector maximalLocalDisplacement( const TrajectoryStateOnSurface& ts, const Plane& plane) const;
40 
41  double nSigmaCut() const {return theNSigma;}
42 
43 private:
44 
47  float dr_;
48  double theNSigma;
49 };
50 
51 #endif // ConversionForwardEstimator_H
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
virtual Local2DVector maximalLocalDisplacement(const TrajectoryStateOnSurface &ts, const Plane &plane) const
Definition: Plane.h:17
virtual ConversionForwardEstimator * clone() const
ConversionForwardEstimator(float phiRangeMin, float phiRangeMax, float dr, double nSigma=3.)
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &ts, const TrackingRecHit &hit) const