By default, Root always draws the fitted function computed
at 100 equidistant points. This is better than PAW when drawing
histograms with only a few channels.
The chunk of code below is an example illustrating how to get
a fitted function associated to an histogram and how to return
the function integral normalized to the number of bins in
in the histogram:
Root > h->Fit("gaus");
Root > TF1 *g = h->GetFunction("gaus");
Root > TH1F *htemp = g->GetHistogram();
Root > Double_t integral = htemp->GetSum()*h->GetNbinsX()/100.
Note that this example is valid only for a fixed bin size histogram.
We should may be provide a service function in TH1 returning
the integral (normalized or not) of a function with a given name.
(More than one function can be fitted to an histogram).
Rene Brun