QStabFitter.hh
Go to the documentation of this file.00001
00010 #ifndef __Q_STAB_FITTER_HH_
00011 #define __Q_STAB_FITTER_HH_
00012
00013 #define NPARAMS 5
00014 #include <TMinuit.h>
00015
00016
00017 class TGraph;
00018 class TMinuit;
00019
00020 class QStabFitter {
00021
00022 public:
00023
00024 QStabFitter();
00025
00026 virtual ~QStabFitter();
00027
00028 int Fit(TGraph*);
00029
00030 void SetAverageAmplitude(double);
00031
00032 Double_t* GetParameters();
00033 Double_t GetParameter(int);
00034
00035 void SetInitialParameters(int, double*);
00036
00037 private:
00038
00039 TMinuit* fMinuit;
00040 void FillArrays(TGraph*);
00041
00042 int fNElements;
00043 double fAverageAmplitude;
00044 double fParams[NPARAMS];
00045 double fX0;
00046 Double_t* fVStart;
00047 Double_t* fStep;
00048
00049
00050 };
00051
00052 #endif
00053