CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/RecoPixelVertexing/PixelTrackFitting/interface/PixelTrackErrorParam.h

Go to the documentation of this file.
00001 #ifndef PixelTrackFitting_PixelTrackErrorParam_H
00002 #define PixelTrackFitting_PixelTrackErrorParam_H
00003 #include <cmath>
00004 
00005 class PixelTrackErrorParam {
00006 public: 
00007  PixelTrackErrorParam(double eta, double pt);
00008  double errPt()  const;
00009 // { return ptPar0_[theIEta]*thePt + ptPar1_[theIEta]*thePt2; }
00010  inline double errCot() const { return cotPar0_[theIEta] + cotPar1_[theIEta]/thePt + cotPar2_[theIEta]/thePt2; }
00011  inline double errTip() const { return sqrt(tipPar0_[theIEta] + tipPar1_[theIEta]/thePt2); }
00012  inline double errZip() const { return sqrt(zipPar0_[theIEta] + zipPar1_[theIEta]/thePt2); } 
00013  inline double errPhi() const { return sqrt(phiPar0_[theIEta] + phiPar1_[theIEta]/thePt2); } 
00014 
00015 private:
00016   unsigned int theIEta;
00017   double thePt, thePt2;
00018 
00019   static const unsigned int nEta = 25;
00020   static double ptPar0_[nEta], ptPar1_[nEta];
00021   static double cotPar0_[nEta], cotPar1_[nEta], cotPar2_[nEta];
00022   static double tipPar0_[nEta], tipPar1_[nEta];
00023   static double zipPar0_[nEta], zipPar1_[nEta];
00024   static double phiPar0_[nEta], phiPar1_[nEta];
00025 };
00026 
00027 #endif