14 #ifndef TGO4FITPEAKFINDER_H
15 #define TGO4FITPEAKFINDER_H
42 TGo4FitPeakFinder(
const char* Name,
const char* DataName = 0, Bool_t ClearModels = kFALSE, Int_t PolOrder = -1);
57 void SetupForFirst(Double_t MaxAmplFactor, Double_t MinWidth, Double_t MaxWidth);
61 void SetupForThird(Double_t NoiseFactor, Double_t NoiseMinimum, Int_t ChannelSum);
101 virtual void Print(Option_t* option)
const;
121 Double_t AmplThreshold,
131 Int_t MaxNumPeaks = 50,
132 Int_t ChannelSum = 1,
133 Double_t NoiseFactor = 2.,
134 Double_t NoiseMinimum = 10.,
135 Int_t MinimasOrder = -1);
141 Double_t* weight = 0,
142 Double_t* backgr = 0,
145 static void DefinePolynomEx(Int_t size, Double_t* bins, Double_t* scales, Double_t* weight, Double_t* backgr,
146 Int_t lbound, Int_t rbound, TArrayD& Coef);
149 static Double_t
CalcPolynom(
const TArrayD& Coef, Double_t x);
174 #endif // TGO4FITPEAKFINDER_H
static void DefinePolynom(Int_t size, Double_t *bins, Double_t *scales, TArrayD &Coef, Double_t *weight=0, Double_t *backgr=0, Char_t *use=0)
void SetupForSecond(Double_t LineWidth)
virtual Bool_t CanChangeFitter() const
void Set2NoiseFactor(Double_t factor)
Int_t GetPeakFinderType()
void SetDataName(const char *name)
static void DefinePolynomEx(Int_t size, Double_t *bins, Double_t *scales, Double_t *weight, Double_t *backgr, Int_t lbound, Int_t rbound, TArrayD &Coef)
void SergeyLinevPeakFinder(TGo4Fitter *fitter, TGo4FitData *data, Int_t PolOrder, Double_t AmplThreshold, Double_t MinWidth, Double_t MaxWidth)
void Set2NoiseMinimum(Double_t min)
Double_t Get2NoiseFactor()
void SetPeakFinderType(Int_t typ)
const char * GetDataName()
Double_t Get0MaxAmplFactor()
virtual void Print(Option_t *option) const
void Set0MaxWidth(Double_t max)
void Set0MaxAmplFactor(Double_t factor)
void SetupForFirst(Double_t MaxAmplFactor, Double_t MinWidth, Double_t MaxWidth)
void Set2ChannelSum(Int_t sum)
virtual ~TGo4FitPeakFinder()
Double_t Get2NoiseMinimum()
virtual void DoAction(TGo4FitterAbstract *Fitter)
void SetupPolynomialBackground(Int_t PolynomOrder)
void SetUsePolynom(Bool_t use)
void SetupForThird(Double_t NoiseFactor, Double_t NoiseMinimum, Int_t ChannelSum)
Double_t fd0MaxAmplFactor
void Set1LineWidth(Double_t width)
void SetClearModels(Bool_t clear)
static Double_t CalcPolynom(const TArrayD &Coef, Double_t x)
void ROOTPeakFinder(TGo4Fitter *fitter, TGo4FitData *data, Int_t PolynomOrder, Double_t Sigma)
void SetPolynomOrder(Int_t order)
void HansEsselPeakFinder(TGo4Fitter *fitter, TGo4FitData *data, Int_t MaxNumPeaks=50, Int_t ChannelSum=1, Double_t NoiseFactor=2., Double_t NoiseMinimum=10., Int_t MinimasOrder=-1)
void Set0MinWidth(Double_t min)