22 #include "TCollection.h" 23 #include "TApplication.h" 36 int main(
int argc,
char **argv)
38 TApplication theApp(
"Application",
nullptr,
nullptr);
52 TFile *f = TFile::Open(
"histograms.root");
53 if (!f)
return nullptr;
54 TH1D *histo =
nullptr;
55 f->GetObject(HistogramName, histo);
56 if (histo) histo->SetDirectory(
nullptr);
126 TFile *f = TFile::Open(
"Example7.root",
"recreate");
127 if (f) fitter->Write(
"Fitter");
134 TFile *f = TFile::Open(
"Example7.root");
135 if (!f)
return nullptr;
137 f->GetObject(
"Fitter", fitter);
175 fitter->
Print(
"Pars");
176 fitter->
Draw(
"#data1,Gauss1,Gauss2");
177 fitter->
Draw(
"#data2,Gauss1,Gauss2,Gauss3,Gauss4");
TGo4FitSlot * SetObject(TObject *obj, Bool_t iOwned=kFALSE)
void SetMemoryUsage(Int_t iMemoryUsage)
void AddAmplEstimation(Int_t NumIters=1)
Bool_t SetNumberOfTransSlots(Int_t nslots)
void AssignToData(const char *DataName, Double_t RatioValue=1., Bool_t FixRatio=kFALSE)
int main(int argc, char **argv)
void AddCommand(const char *iCommand)
void AddAction(TGo4FitterAction *Action)
TH1D * GetHistogram(const char *HistogramName)
TGo4FitData * AddData(TGo4FitData *d)
void SetCoefByRange(Int_t nbins, Double_t y1, Double_t y2)
Bool_t ConnectSlots(TGo4FitSlot *slot1, TGo4FitSlot *slot2)
void SetRange(Int_t naxis, Double_t min, Double_t max)
TGo4Fitter * BuildFitter()
TGo4FitAxisTrans * ConstructTrans()
TGo4FitModel * AddModel(TGo4FitModel *m)
TGo4Fitter * RestoreFitter()
void SetUseBinScale(Bool_t iUseBinScale)
void StoreFitter(TGo4Fitter *fitter)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=nullptr)
void Draw(Option_t *option) override
void Print(Option_t *option="") const override