Supposed I have TH1D* hist, I want to fit it with a gaus function. So one can do the following:
hist->Fit(“gaus”).
My question is that in this fit, whether the errorbar of each bin content ( sqrt(bin content) in my case) is automatically included? Or in this fit the weight is set equally for each bin? What is the default setting for fit?
Second question: several packages are offered in the document, like the standard root fit, Minuit and etc… Are there any preference which one is better? I cannot find more detail information on this.
Thanks.