CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MatchedHitRZCorrectionFromBending.h
Go to the documentation of this file.
1 #ifndef MatchedHitRZCorrectionFromBending_H
2 #define MatchedHitRZCorrectionFromBending_H
3 
6 
8 class DetLayer;
9 class TrackerTopology;
10 
12  public:
16 
17  inline void operator()(const ThirdHitPredictionFromCircle &pred,
18  double curvature, const TrackingRecHit &hit,
19  double &r, double &z, const TrackerTopology *tTopo) const
20  {
21  if (!rFixup && !zFixup) return;
22  if (rFixup) r += rFixup(pred, curvature, z, hit,tTopo);
23  if (zFixup) z += zFixup(pred, curvature, r, hit,tTopo);
24  }
25 
26  private:
27  typedef double (*FixupFn)(const ThirdHitPredictionFromCircle &pred,
28  double curvature, double rOrZ,
29  const TrackingRecHit &hit,
30  const TrackerTopology *tTopo);
31 
32  static double tibMatchedHitZFixup(const ThirdHitPredictionFromCircle &pred,
33  double curvature, double rOrZ,
34  const TrackingRecHit &hit,
35  const TrackerTopology *tTopo);
36 
38 };
39 
40 #endif // MatchedHitRZCorrectionFromBending_H
T curvature(T InversePt, const edm::EventSetup &iSetup)
double(* FixupFn)(const ThirdHitPredictionFromCircle &pred, double curvature, double rOrZ, const TrackingRecHit &hit, const TrackerTopology *tTopo)
Definition: DetId.h:18
static double tibMatchedHitZFixup(const ThirdHitPredictionFromCircle &pred, double curvature, double rOrZ, const TrackingRecHit &hit, const TrackerTopology *tTopo)
void operator()(const ThirdHitPredictionFromCircle &pred, double curvature, const TrackingRecHit &hit, double &r, double &z, const TrackerTopology *tTopo) const