#ifndef __HOUGHFIT_HH_ #define __HOUGHFIT_HH_ #include #include "euso.hh" #include class HoughFit { public: // ctor HoughFit( vector x, vector y, vector c, Int_t fDoSelection, Float_t ex, Float_t ey ); // dtor virtual ~HoughFit(); // getters inline Double_t GetSlope() { return fSlopetopass; } inline Double_t GetOffset() { return fOffsettopass; } inline Double_t Getwidth() { return fwidth; } inline Int_t GetNumPoints() { return fNumPoints; } inline Int_t GetNumPointsSelected() { return fNumPointsselected; } inline Double_t GetMinx() { return fminx; } inline Double_t GetMiny() { return fminy; } inline Double_t GetMaxx() { return fmaxx; } inline Double_t GetMaxy() { return fmaxy; } inline Float_t GetAbsDev() { return absdev; } inline Float_t GetMaxToMedium() { return cmaxtocmedio; } vector xsel; vector ysel; vector csel; Int_t fthereissignal; private: Float_t cmaxtocmedio; Float_t cmaxtocmediotmp; Float_t epsx,epsy; Float_t absdev; Int_t fNumPoints; Double_t fminx,fminy,fmaxx,fmaxy; vector fPointsX; vector fPointsY; vector fCounts; Double_t fSlopetopass; Double_t fOffsettopass; Double_t fSlope; Double_t fOffset; Double_t fwidth; Int_t fNumPointsselected; void DoSinusoidal(Int_t firsttimedo); void DoLinear(Int_t firsttimedo); void DoNumerical(); void Clear(); ClassDef(HoughFit,0) }; #endif /* __HOUGHFIT_HH_ */