14#include "TFitResult.h"
15#include "TFitResultPtr.h"
18#include "TVirtualFitter.h"
32 TGRSIFit(
const char* name,
const char* formula, Double_t xmin = 0, Double_t xmax = 1) : TF1(name, formula, xmin, xmax) {
Clear(); }
33 TGRSIFit(
const char* name, Double_t xmin, Double_t xmax, Int_t npar) : TF1(name, xmin, xmax, npar) {
Clear(); }
34 TGRSIFit(
const char* name,
const ROOT::Math::ParamFunctor& func, Double_t xmin = 0, Double_t xmax = 1, Int_t npar = 0) : TF1(name, func, xmin, xmax, npar) {
Clear(); }
35 template <
class PtrObj,
typename MemFn>
36 TGRSIFit(
const char* name,
const PtrObj& pointer, MemFn memFn, Double_t xmin, Double_t xmax, Int_t npar,
const char* class_name,
const char* fcn_name)
37 : TF1(name, pointer, memFn, xmin, xmax, npar, class_name, fcn_name)
49 void Copy(TObject& obj) const override;
57 virtual TH1*
GetHist()
const {
return dynamic_cast<TH1*
>(
fHist.GetObject()); }
78 void Print(Option_t* opt =
"")
const override;
79 void Clear(Option_t* opt =
"")
override;
TGRSIFit(TGRSIFit &&) noexcept=default
virtual void ClearParameters(Option_t *opt="")
TGRSIFit(const char *name, const ROOT::Math::ParamFunctor &func, Double_t xmin=0, Double_t xmax=1, Int_t npar=0)
TGRSIFit(const char *name, const PtrObj &pointer, MemFn memFn, Double_t xmin, Double_t xmax, Int_t npar, const char *class_name, const char *fcn_name)
Bool_t AddToGlobalList(Bool_t yes=kTRUE) override
virtual void SetHist(TH1 *hist)
void Clear(Option_t *opt="") override
static const char * GetDefaultFitType()
virtual void CopyParameters(TF1 *copy) const
static TString fDefaultFitType
Bool_t IsInitialized() const
void GoodFit(Bool_t flag=true)
void SetInitialized(Bool_t flag=true)
virtual Bool_t InitParams(TH1 *)=0
TGRSIFit(const char *name, const char *formula, Double_t xmin=0, Double_t xmax=1)
TGRSIFit(const char *name, Double_t xmin, Double_t xmax, Int_t npar)
void Copy(TObject &obj) const override
virtual TH1 * GetHist() const
static void SetDefaultFitType(const char *fitType)
void Print(Option_t *opt="") const override