23 #include "TApplication.h"
34 int main(
int argc,
char **argv)
36 TApplication theApp(
"Application", 0, 0);
50 TFile* f1 = TFile::Open(
"histograms.root");
52 TH1D* histo = (TH1D*) f1->Get(HistogramName);
53 if (histo) histo->SetDirectory(0);
66 fitter.
AddH1(
"data2", histo2, kTRUE, 2200., 2900.);
75 fitter.
AddGauss1(
"data2",
"Gauss3", 2597., 14.);
76 fitter.
AddGauss1(
"data2",
"Gauss4", 2717., 14.);
82 fitter.
Draw(
"#data2,Model1,Gauss3,Gauss4");
virtual void Print(Option_t *option) const
virtual void Draw(Option_t *option)
void AddPolynomX(const char *DataName, const char *NamePrefix, Int_t MaxOrder=1, Int_t GroupIndex=0, Double_t lrange=0., Double_t rrange=0.)
int main(int argc, char **argv)
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)
TGo4FitModel * AddModel(TGo4FitModel *m)
TH1D * GetHistogram(const char *HistogramName)
TGo4FitDataHistogram * AddH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)