/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcTrkRecon/MdcTrkRecon-00-03-45/MdcTrkRecon/MdcLine.h

Go to the documentation of this file.
00001 // MdcLine.hh
00002 //  simple class to do a line fit -- all public
00003 //   y = ax + b;
00004 
00005 // Interface Dependencies ----------------------------------------------
00006 
00007 #ifndef MDCLINE_H
00008 #define MDCLINE_H
00009 
00010 //  End Interface Dependencies -----------------------------------------
00011 
00012 // Class definition//
00013 class MdcLine {
00014 public:
00015   double *x;
00016   double *y;
00017   double *sigma;
00018   double *resid;
00019   int nPoint;
00020   double slope;
00021   double intercept;
00022   double chisq;
00023   double errmat[3];
00024 
00025   MdcLine(int n) { 
00026     nPoint = n;
00027     x = new double[n];
00028     y = new double[n];
00029     sigma = new double[n];
00030     resid = new double[n];
00031   };
00032   ~MdcLine() { 
00033     delete [] x;
00034     delete [] y;
00035     delete [] sigma;
00036     delete [] resid;
00037   };
00038   
00039   // The fit:
00040   int fit(int nUse);  // fit using first nUse pts
00041 };
00042 #endif
00043 
00044 
00045 
00046 
00047 
00048 
00049 

Generated on Tue Nov 29 23:13:33 2016 for BOSS_7.0.2 by  doxygen 1.4.7