CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/RecoLocalMuon/DTSegment/src/DTLinearFit.h

Go to the documentation of this file.
00001 #ifndef DTSegment_DTLinearFit_h
00002 #define DTSegment_DTLinearFit_h
00003 
00016 /* Base Class Headers */
00017 
00018 /* Collaborating Class Declarations */
00019 
00020 /* C++ Headers */
00021 #include <vector>
00022 
00023 /* ====================================================================== */
00024 
00025 /* Class DTLinearFit Interface */
00026 
00027 class DTLinearFit{
00028 
00029   public:
00030 
00032     DTLinearFit() ;
00033 
00035     ~DTLinearFit() ;
00036 
00037 /* Operations */ 
00038     void fit(const std::vector<float> & x,
00039              const std::vector<float> & y,
00040              int ndat, 
00041              const std::vector<float> & sigy,
00042              float& slope,
00043              float& intercept, 
00044              float& covss,
00045              float& covii,
00046              float& covsi) const;
00047 
00048   protected:
00049 
00050   private:
00051 
00052 };
00053 #endif // DTSegment_DTLinearFit_h