18 #include "Riostream.h"
21 #include "TApplication.h"
28 int main(
int argc,
char **argv)
30 TApplication theApp(
"Application", 0, 0);
39 extern "C" Double_t
gaussian_(Double_t *axis, Double_t *pars);
44 TFile* f1 = TFile::Open(
"histograms.root");
46 TH1D* histo = (TH1D*) f1->Get(HistogramName);
47 if (histo) histo->SetDirectory(0);
84 std::cout <<
"This example uses linked FORTRAN library," << std::endl;
85 std::cout <<
"therefore it can not be run in CINT" << std::endl;
Bool_t SetParValue(const char *ParName, Double_t iValue)
int main(int argc, char **argv)
TH1D * GetHistogram(const char *HistogramName)
Double_t gaussian_(Double_t *axis, Double_t *pars)
void AddPolynomX(const char *DataName, const char *NamePrefix, Int_t MaxOrder=1, Int_t GroupIndex=0, Double_t lrange=0., Double_t rrange=0.)
TGo4FitterOutput * AddOutputAction(const char *Action, const char *Option=0)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)
TGo4FitModel * AddModel(TGo4FitModel *m)
TGo4FitDataHistogram * AddH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)