Re: Changing Error Bars in Histogram

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Mar 21 2000 - 21:26:39 MET


Hi Jon,
By default, errors are calculated as sqrt(bin content).
If you call TH1::Sumw2 before filling your histogram,
errors will be sqrt(sum of square of weights).
You can also force your own error per bin by calling
TH1::SetBinError

Rene Brun


On Thu, 16 Mar 2000, Jon Gans wrote:

> 
> I have a histogram which I fit with a user defined function, but I do not
> want the error to be just the sqrt(n), but added in quaditure with another
> number. How can set the error to what I want so my fit function sees it?
>  Thanks
>  jon
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:21 MET