Example of fit where the model is histogram + function
****************************************
Minimizer is Minuit2 / Migrad
Chi2 = 7.84157
NDf = 96
Edm = 3.7399e-06
NCalls = 174
p0 = 156.638 +/- 5.91061 (limited)
p1 = 5.98183 +/- 0.0189043
p2 = -0.506659 +/- 0.0180481
p3 = 1.0003 +/- 0.0112955
TF1 f1(
"f1",
"pol1",0,10);
TH1F h(
"background",
"linear background",100,0,10);
h.FillRandom(
"f1",10000);
TFile f(
"background.root",
"recreate");
TF1 f2(
"f2",
"gaus",0,10);
f2.SetParameters(1,6,0.5);
}
double ftotal(
double *
x,
double *par) {
double arg = (
xx-par[1])/par[2];
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
virtual void SetParameters(const Double_t *params)
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
1-D histogram with a float per channel (see TH1 documentation)
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
- Author
- Rene Brun
Definition in file fithist.C.