CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LongitudinalBendingCorrection.h
Go to the documentation of this file.
1 #ifndef PixelRecoUtilities_LongitudinalBendingCorrection_H
2 #define PixelRecoUtilities_LongitudinalBendingCorrection_H
4 
5 
6 namespace pixelrecoutilities {
8  public:
11  init(pt,es);
12  }
13  void init(float pt, const edm::EventSetup& es) {
14  auto theInvCurv = pt*PixelRecoUtilities::fieldInInvGev(es);
15  coeff = 1.f/(4.f*6.f*theInvCurv*theInvCurv);
16  }
17 
18  inline float operator()(float radius) const {
19  return radius*radius*radius*coeff;
20  }
21  private:
22  float coeff;
23  };
24 }
25 
26 #endif
LongitudinalBendingCorrection(float pt, const edm::EventSetup &es)
float fieldInInvGev(const edm::EventSetup &iSetup)