21 TH1F *h_ExpGauss =
new TH1F(
"h_ExpGauss",
"Exponential convoluted by Gaussian", 100, 0., 5.);
22 for (
int i = 0; i < 1e6; i++) {
35 f->SetParameters(1., -0.3, 0., 1.);
R__EXTERN TRandom * gRandom
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.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual Double_t Exp(Double_t tau)
Returns an exponential deviate.