25#include "TCollection.h"
26#include "TApplication.h"
39int main(
int argc,
char **argv)
41 TApplication theApp(
"Application",
nullptr,
nullptr);
55 TFile *f = TFile::Open(
"histograms.root");
56 if (!f)
return nullptr;
57 TH1D *histo =
nullptr;
58 f->GetObject(HistogramName, histo);
59 if (histo) histo->SetDirectory(
nullptr);
129 TFile *f = TFile::Open(
"Example7.root",
"recreate");
130 if (f) fitter->Write(
"Fitter");
137 TFile *f = TFile::Open(
"Example7.root");
138 if (!f)
return nullptr;
140 f->GetObject(
"Fitter", fitter);
178 fitter->
Print(
"Pars");
179 fitter->
Draw(
"#data1,Gauss1,Gauss2");
180 fitter->
Draw(
"#data2,Gauss1,Gauss2,Gauss3,Gauss4");
int main(int argc, char **argv)
TGo4Fitter * RestoreFitter()
TGo4FitAxisTrans * ConstructTrans()
TH1D * GetHistogram(const char *HistogramName)
TGo4Fitter * BuildFitter()
void StoreFitter(TGo4Fitter *fitter)
Base class for axis transformation objects.
void SetRange(Int_t naxis, Double_t min, Double_t max)
Includes axis range in consideration.
Data objects, which provides access to generic TH1 ROOT histogram.
Bool_t SetNumberOfTransSlots(Int_t nslots)
Sets number of slots for scale transformation objects.
void SetUseBinScale(Bool_t iUseBinScale)
If kTRUE, binary numbers will be used as scale values.
The linear transformation of selected data axis.
void SetCoefByRange(Int_t nbins, Double_t y1, Double_t y2)
Minuit minimization action.
void AddCommand(const char *iCommand)
Add Minuit command to command list.
One dimensional gaussian peak.
Model objects, which reproduce component of polynomial function.
Basic abstract class for representing model components of fitted data.
void AssignToData(const char *DataName, Double_t RatioValue=1., Bool_t FixRatio=kFALSE)
Assign model to specified data object.
TGo4FitSlot * SetObject(TObject *obj, Bool_t iOwned=kFALSE)
Set object to first suitable slot with defined ownership flag.
Bool_t ConnectSlots(TGo4FitSlot *slot1, TGo4FitSlot *slot2)
Connects first slot to second.
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=nullptr)
Executes actions list.
void AddAction(TGo4FitterAction *Action)
Add action to action list.
Central class of Go4Fit package.
void Print(Option_t *option="") const override
Print containment of fitter.
TGo4FitData * AddData(TGo4FitData *d)
Add data object to fitter.
void AddAmplEstimation(Int_t NumIters=1)
Add amplitude estimation to actions list.
void SetMemoryUsage(Int_t iMemoryUsage)
Set value of memory usage.
void Draw(Option_t *option) override
Draw fitter on current canvas.
TGo4FitModel * AddModel(TGo4FitModel *m)
Add model component to fitter.