21 #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);
84 fitter.
Draw(
"#data1,Background,Gauss1,Gauss2");
void SetParsNames(const char *name0="Par0", const char *name1="Par1", const char *name2="Par2", const char *name3="Par3", const char *name4="Par4", const char *name5="Par5", const char *name6="Par6", const char *name7="Par7", const char *name8="Par8", const char *name9="Par9")
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)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)
TH1D * GetHistogram(const char *HistogramName)
TGo4FitModel * AddModel(TGo4FitModel *m)
void SetParsValues(Double_t *pars)
TGo4FitDataHistogram * AddH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)