22 #include "TCollection.h"
23 #include "TApplication.h"
36 int main(
int argc,
char **argv)
38 TApplication theApp(
"Application", 0, 0);
52 TFile* f1 = TFile::Open(
"histograms.root");
54 TH1D* histo = (TH1D*) f1->Get(HistogramName);
55 if (histo) histo->SetDirectory(0);
124 TFile* f = TFile::Open(
"Example7.root",
"recreate");
125 if (f!=0) fitter->Write(
"Fitter");
132 TFile* f = TFile::Open(
"Example7.root");
171 fitter->
Print(
"Pars");
172 fitter->
Draw(
"#data1,Gauss1,Gauss2");
173 fitter->
Draw(
"#data2,Gauss1,Gauss2,Gauss3,Gauss4");
virtual void Print(Option_t *option) const
TGo4FitSlot * SetObject(TObject *obj, Bool_t iOwned=kFALSE)
void SetMemoryUsage(Int_t iMemoryUsage)
virtual void Draw(Option_t *option)
void AddAmplEstimation(Int_t NumIters=1)
Bool_t SetNumberOfTransSlots(Int_t nslots)
void AssignToData(const char *DataName, Double_t RatioValue=1., Bool_t FixRatio=kFALSE)
int main(int argc, char **argv)
void AddCommand(const char *iCommand)
void AddAction(TGo4FitterAction *Action)
TH1D * GetHistogram(const char *HistogramName)
TGo4FitData * AddData(TGo4FitData *d)
void SetCoefByRange(Int_t nbins, Double_t y1, Double_t y2)
Bool_t ConnectSlots(TGo4FitSlot *slot1, TGo4FitSlot *slot2)
void SetRange(Int_t naxis, Double_t min, Double_t max)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)
TGo4Fitter * BuildFitter()
TGo4FitAxisTrans * ConstructTrans()
TGo4FitModel * AddModel(TGo4FitModel *m)
TGo4Fitter * RestoreFitter()
void SetUseBinScale(Bool_t iUseBinScale)
void StoreFitter(TGo4Fitter *fitter)