20 #include "TApplication.h"
27 int main(
int argc,
char **argv)
29 TApplication theApp(
"Application", 0, 0);
43 TGraph* gr =
new TGraph(40);
44 for(Int_t i=0;i<40;i++) {
45 Double_t x = (i+1.)/40.;
46 Double_t y = 5 - 0.5*x + x*x;
47 if ((x>0.3) && (x<0.7))
48 y+= 10.*(1. - 25.*(x-.5)*(x-.5));
49 gr->SetPoint(i, x, y);
67 fitter.
AddPolynomX(
"data1",
"LinePol", 2, 123, 0.3, 0.7);
76 fitter.
Draw(
"#data1-, Background, Group123");
virtual void Print(Option_t *option) const
TGo4FitDataGraph * AddGraph(const char *DataName, TGraph *gr, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)
virtual void Draw(Option_t *option)
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.)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)