30#include "TApplication.h"
42int main(
int argc,
char **argv)
44 TApplication theApp(
"Application",
nullptr,
nullptr);
55void DrawHistogram(TH1 *histo,
const char *CanvasName,
const char *DrawOption)
57 TCanvas *fCanvas =
new TCanvas(CanvasName,
"Draw of histogram",3);
59 histo->Draw(DrawOption);
69 TH2D *histo =
new TH2D(
"histo",
"dummy histogram",1000,0.,10.,1000,0.,10.);
91 histo =
new TH2D(
"histo2",
"dummy histogram",10,0.,10.,10,0.,10.);
111 Double_t i1 = res1->Integral()/1000000.;
112 Double_t i2 = res2->Integral()/100.;
113 Double_t i3 = res3->Integral()/100.;
115 std::cout <<
"Integral over 1000x1000 points = " << i1 << std::endl;
116 std::cout <<
"Integral over 10x10 points = " << i2 << std::endl;
117 std::cout <<
"Integral over 10x10 with model integr. = " << i3 << std::endl << std::endl;
119 std::cout <<
"Integral2/Integral1 = " << i2/i1 << std::endl;
120 std::cout <<
"Integral3/Integral1 = " << i3/i1 << std::endl;
int main(int argc, char **argv)
void DrawHistogram(TH1 *histo, const char *CanvasName, const char *DrawOption)
void SetRange(Int_t naxis, Double_t min, Double_t max)
Includes axis range in consideration.
void SetAmplValue(Double_t iAmpl)
Set value of amplitude parameter.
Data objects, which provides access to generic TH1 ROOT histogram.
Basic abstract class for representing data, which should be fitted.
Two dimensional gaussian peak.
Basic abstract class for representing model components of fitted data.
void SetIntegrationsProperty(Int_t iMinIntegrDepth, Int_t iMaxIntegrDepth=0, Double_t iIntegrEps=0., Bool_t iAbsoluteEps=kFALSE, Bool_t iIntegrScaling=kFALSE)
Set integration properties.
TGo4FitSlot * SetObject(TObject *obj, Bool_t iOwned=kFALSE)
Set object to first suitable slot with defined ownership flag.
Central class of Go4Fit package.
TGo4FitData * AddData(TGo4FitData *d)
Add data object to fitter.
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.