22 #include "TApplication.h"
30 int main(
int argc,
char **argv)
32 TApplication theApp(
"Application", 0, 0);
47 TFile* f1 = TFile::Open(
"histograms.root");
49 TH1D* histo = (TH1D*) f1->Get(HistogramName);
50 if (histo) histo->SetDirectory(0);
66 fitter.
AddGauss1(
"data1",
"Gauss1",2553.,15.);
67 fitter.
AddGauss1(
"data1",
"Gauss2",2672.,15.);
73 fitter.
Draw(
"#data1,Gauss1,Gauss2");
80 fitter.
AddGauss1(
"data1",
"Gauss3", 2597., 14.);
81 fitter.
AddGauss1(
"data1",
"Gauss4", 2717., 14.);
90 fitter.
Draw(
"#data1,Gauss1,Gauss2,Gauss3,Gauss4");
virtual void Print(Option_t *option) const
void SetHistogram(TH1 *iHistogram, Bool_t iHistogramOwned=kFALSE)
virtual void Draw(Option_t *option)
TH1D * GetHistogram(const char *HistogramName)
int main(int argc, char **argv)
void AddPolynomX(const char *DataName, const char *NamePrefix, Int_t MaxOrder=1, Int_t GroupIndex=0, Double_t lrange=0., Double_t rrange=0.)
TGo4FitModelGauss1 * AddGauss1(const char *DataName, const char *ModelName, Double_t iPosition, Double_t iWidth, Double_t iAmpl=1., Int_t Axis=0)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)
TGo4FitDataHistogram * AddH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)