Tutorial for convolution of two functions
****************************************
Minimizer is Minuit2 / Migrad
Chi2 = 298.12
NDf = 96
Edm = 1.99099e-06
NCalls = 445
p0 = 7.32863 +/- 0.0370717
p1 = 0.0733009 +/- 0.00244044
p2 = -2.26416 +/- 0.0491606
p3 = 1.12804 +/- 0.062857
void fitConvolution()
{
TH1F *h_ExpGauss =
new TH1F(
"h_ExpGauss",
"Exponential convoluted by Gaussian", 100, 0., 5.);
for (int i = 0; i < 1e6; i++) {
}
f->SetParameters(1., -0.3, 0., 1.);
}
Class wrapping convolution of two functions.
void SetRange(Double_t a, Double_t b) override
Set the actual range used for the convolution.
void SetNofPointsFFT(Int_t n)
Set the number of points used for the FFT convolution.
1-D histogram with a float per channel (see TH1 documentation)
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Double_t xmin=0, Double_t xmax=0)
Fit histogram with function fname.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
- Author
- Aurelie Flandi
Definition in file fitConvolution.C.