16 #include "Riostream.h"
21 #include "TApplication.h"
33 int main(
int argc,
char **argv)
35 TApplication theApp(
"Application", 0, 0);
46 void DrawHistogram(TH1* histo,
const char* CanvasName,
const char* DrawOption)
48 TCanvas *fCanvas =
new TCanvas(CanvasName,
"Draw of histogram",3);
50 histo->Draw(DrawOption);
60 TH2D *histo =
new TH2D(
"histo",
"dummy histogram",1000,0.,10.,1000,0.,10.);
82 histo =
new TH2D(
"histo2",
"dummy histogram",10,0.,10.,10,0.,10.);
102 Double_t i1 = res1->Integral()/1000000.;
103 Double_t i2 = res2->Integral()/100.;
104 Double_t i3 = res3->Integral()/100.;
106 std::cout <<
"Integral over 1000x1000 points = " << i1 << std::endl;
107 std::cout <<
"Integral over 10x10 points = " << i2 << std::endl;
108 std::cout <<
"Integral over 10x10 with model integr. = " << i3 << std::endl << std::endl;
110 std::cout <<
"Integral2/Integral1 = " << i2/i1 << std::endl;
111 std::cout <<
"Integral3/Integral1 = " << i3/i1 << std::endl;
TGo4FitSlot * SetObject(TObject *obj, Bool_t iOwned=kFALSE)
int main(int argc, char **argv)
void SetAmplValue(Double_t iAmpl)
TGo4FitData * AddData(TGo4FitData *d)
void SetRange(Int_t naxis, Double_t min, Double_t max)
void DrawHistogram(TH1 *histo, const char *CanvasName, const char *DrawOption)
void SetIntegrationsProperty(Int_t iMinIntegrDepth, Int_t iMaxIntegrDepth=0, Double_t iIntegrEps=0., Bool_t iAbsoluteEps=kFALSE, Bool_t iIntegrScaling=kFALSE)
TGo4FitModel * AddModel(TGo4FitModel *m)
TObject * CreateDrawObject(const char *ObjName, const char *DataName, Bool_t IsModel=kFALSE, const char *ModelName=0)