29#include "TApplication.h"
40int main(
int argc,
char **argv)
42 TApplication theApp(
"Application",
nullptr,
nullptr);
53void DrawHistogram(TH1 *histo,
const char *CanvasName,
const char *DrawOption)
55 TCanvas *fCanvas =
new TCanvas(CanvasName,
"Draw of histogram",3);
57 histo->Draw(DrawOption);
63 Double_t x[] = { 2,3,8,7,2 };
64 Double_t y[] = { 8,3,2,7,8 };
65 TCutG *cut =
new TCutG(
"cut1",5,x,y);
75 TH2D *histo =
new TH2D(
"histo",
"dummy histogram",100,0.,10.,100,0.,10.);
114 fitter->
Print(
"Pars");
void AddRangeCut(TGo4FitComponent *comp)
int main(int argc, char **argv)
void DrawHistogram(TH1 *histo, const char *CanvasName, const char *DrawOption)
Basic abstract class, combining common properties of data and model.
void SetAmplValue(Double_t iAmpl)
Set value of amplitude parameter.
void AddRangeCut(TCutG *cut, Bool_t exclude=kFALSE)
Add TCutG object as range condition for two-dimensional case.
Data objects, which provides access to generic TH1 ROOT histogram.
Basic abstract class for representing data, which should be fitted.
Two dimensional gaussian peak.
N-dimensional gaussian peak.
Basic abstract class for representing model components of fitted data.
virtual Bool_t SetPosition(Int_t naxis, Double_t pos)
Sets position of model component, if possible.
virtual Bool_t SetWidth(Int_t naxis, Double_t width)
Sets width of model component, if possible.
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=nullptr)
Executes actions list.
void AddSimpleMinuit()
Creates and add TGo4FitMinuit object to actions 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 SetMemoryUsage(Int_t iMemoryUsage)
Set value of memory usage.
TGo4FitModel * AddModel(TGo4FitModel *m)
Add model component to fitter.
TObject * CreateDrawObject(const char *ObjName, const char *DataName, Bool_t IsModel=kFALSE, const char *ModelName=nullptr)
Create object (TH1 or TGraph), which can be drawn.