Tutorial for convolution of two functions
Øp_#
****************************************
Minimizer is Minuit2 / Migrad
Chi2 = 130.032
NDf = 96
Edm = 5.86403e-07
NCalls = 336
p0 = 7.32461 +/- 0.0202415
p1 = -0.0155708 +/- 0.00479203
p2 = 0.000645777 +/- 0.0443831
p3 = 1.38527 +/- 0.0278264
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)
virtual Int_t Fill(Double_t x)
- Author
- Aurelie Flandi
Definition in file fitConvolution.C.