File indexing completed on 2024-04-06 12:28:37
0001 #ifndef RecoTracker_PixelTrackFitting_PixelTrackErrorParam_h
0002 #define RecoTracker_PixelTrackFitting_PixelTrackErrorParam_h
0003 #include <cmath>
0004
0005 class PixelTrackErrorParam {
0006 public:
0007 PixelTrackErrorParam(double eta, double pt);
0008 double errPt() const;
0009
0010 inline double errCot() const { return cotPar0_[theIEta] + cotPar1_[theIEta] / thePt + cotPar2_[theIEta] / thePt2; }
0011 inline double errTip() const { return sqrt(tipPar0_[theIEta] + tipPar1_[theIEta] / thePt2); }
0012 inline double errZip() const { return sqrt(zipPar0_[theIEta] + zipPar1_[theIEta] / thePt2); }
0013 inline double errPhi() const { return sqrt(phiPar0_[theIEta] + phiPar1_[theIEta] / thePt2); }
0014
0015 private:
0016 unsigned int theIEta;
0017 double thePt, thePt2;
0018
0019 static const unsigned int nEta = 25;
0020 static double const ptPar0_[nEta];
0021 static double const ptPar1_[nEta];
0022 static double const cotPar0_[nEta];
0023 static double const cotPar1_[nEta];
0024 static double const cotPar2_[nEta];
0025 static double const tipPar0_[nEta];
0026 static double const tipPar1_[nEta];
0027 static double const zipPar0_[nEta];
0028 static double const zipPar1_[nEta];
0029 static double const phiPar0_[nEta];
0030 static double const phiPar1_[nEta];
0031 };
0032
0033 #endif