33 TH1F *h_ExpGauss =
new TH1F(
"h_ExpGauss",
"Exponential convoluted by gaussian",100,0.,5.);
34 for (
int i=0;i<1e6;i++)
49 h_ExpGauss ->
Fit(
"f");
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void SetParameters(const Double_t *params)
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...
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
1-D histogram with a float per channel (see TH1 documentation)}
Class wrapping convolution of two functions.
void SetRange(Double_t a, Double_t b)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
void SetNofPointsFFT(Int_t n)
R__EXTERN TRandom * gRandom
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
virtual Double_t Exp(Double_t tau)
Returns an exponential deviate.