23 #include "TApplication.h"
29 int main(
int argc,
char **argv)
31 TApplication theApp(
"Application", 0, 0);
45 TFile* f1 = TFile::Open(
"histograms.root");
47 TH1D* histo = (TH1D*) f1->Get(HistogramName);
48 if (histo) histo->SetDirectory(0);
64 fitter.
AddGauss1(
"data1",
"Gauss1", 2553., 15.);
65 fitter.
AddGauss1(
"data1",
"Gauss2", 2672., 15.);
71 fitter.
Draw(
"#data1,Gauss1,Gauss2");
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.)
TH1D * GetHistogram(const char *HistogramName)
TGo4FitModelGauss1 * AddGauss1(const char *DataName, const char *ModelName, Double_t iPosition, Double_t iWidth, Double_t iAmpl=1., Int_t Axis=0)
int main(int argc, char **argv)
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.)