21 #include "TApplication.h"
32 int main(
int argc,
char **argv)
34 TApplication theApp(
"Application", 0, 0);
45 void DrawHistogram(TH1* histo,
const char* CanvasName,
const char* DrawOption)
47 TCanvas *fCanvas =
new TCanvas(CanvasName,
"Draw of histogram",3);
49 histo->Draw(DrawOption);
55 Double_t x[] = { 2,3,8,7,2 };
56 Double_t y[] = { 8,3,2,7,8 };
57 TCutG* cut =
new TCutG(
"cut1",5,x,y);
67 TH2D *histo =
new TH2D(
"histo",
"dummy histogram",100,0.,10.,100,0.,10.);
106 fitter->
Print(
"Pars");
virtual void Print(Option_t *option) const
void SetMemoryUsage(Int_t iMemoryUsage)
int main(int argc, char **argv)
void AddRangeCut(TGo4FitComponent *comp)
virtual Bool_t SetPosition(Int_t naxis, Double_t pos)
void SetAmplValue(Double_t iAmpl)
TGo4FitData * AddData(TGo4FitData *d)
void DrawHistogram(TH1 *histo, const char *CanvasName, const char *DrawOption)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)
void AddRangeCut(TCutG *cut, Bool_t exclude=kFALSE)
virtual Bool_t SetWidth(Int_t naxis, Double_t width)
TGo4FitModel * AddModel(TGo4FitModel *m)
TObject * CreateDrawObject(const char *ObjName, const char *DataName, Bool_t IsModel=kFALSE, const char *ModelName=0)