00001 #ifndef PixelTrackFitting_RZLine_H 00002 #define PixelTrackFitting_RZLine_H 00003 00004 #include "DataFormats/GeometryVector/interface/GlobalPoint.h" 00005 #include "DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h" 00006 #include <vector> 00007 00008 class RZLine { 00009 public: 00010 00011 00012 RZLine( const std::vector<GlobalPoint> & points, 00013 const std::vector<GlobalError> & errors, 00014 const std::vector<bool> isBarrel); 00015 RZLine( const std::vector<float> & aR, 00016 const std::vector<float> & aZ, 00017 const std::vector<float> & aErrZ); 00018 00019 void fit(float & cotTheta, float & intercept, float &covss, float &covii, float &covsi) const; 00020 00021 float chi2(float cotTheta, float intercept) const; 00022 00023 private: 00024 std::vector<float> r,z,errZ; 00025 }; 00026 #endif