CMS 3D CMS Logo

ThirdHitPredictionFromCircle.h
Go to the documentation of this file.
1 #ifndef RecoTracker_PixelSeeding_ThirdHitPredictionFromCircle_h
2 #define RecoTracker_PixelSeeding_ThirdHitPredictionFromCircle_h
3 
6 
9 
11 public:
12  using Scalar = double;
16 
18 
19  float phi(float curvature, float radius) const;
20  float angle(float curvature, float radius) const;
21 
22  Range operator()(Range curvature, float radius) const;
23 
24  Range curvature(double transverseIP) const;
25  double curvature(const Vector2D &thirdPoint) const;
26  double transverseIP(const Vector2D &thirdPoint) const;
27 
28  // like PixelRecoLineRZ, but makes use of the bending computation
29  // from the circle fit to get an actual Helix propagation
30  class HelixRZ {
31  public:
34  // using Vector2D=ThirdHitPredictionFromCircle::VectorF2D;
35  // using Scalar=float;
36 
37  HelixRZ() : circle(nullptr) {}
38  HelixRZ(const ThirdHitPredictionFromCircle *icircle, double iz1, double z2, double curv);
39 
40  Scalar zAtR(Scalar r) const;
41  Scalar rAtZ(Scalar z) const;
42 
43  static double maxCurvature(const ThirdHitPredictionFromCircle *circle, double z1, double z2, double z3);
44 
45  private:
49  };
50 
51 private:
52  friend class HelixRZ;
53 
54  Scalar invCenterOnAxis(const Vector2D &thirdPoint) const;
55 
58  float theTolerance;
59 };
60 
61 #endif
const double tolerance
Scalar invCenterOnAxis(const Vector2D &thirdPoint) const
double transverseIP(const Vector2D &thirdPoint) const
ThirdHitPredictionFromCircle::Scalar Scalar
ThirdHitPredictionFromCircle(const GlobalPoint &P1, const GlobalPoint &P2, float tolerance)
static double maxCurvature(const ThirdHitPredictionFromCircle *circle, double z1, double z2, double z3)
float angle(float curvature, float radius) const
const ThirdHitPredictionFromCircle * circle
float phi(float curvature, float radius) const
Range operator()(Range curvature, float radius) const
Range curvature(double transverseIP) const