Hi Mat, In case of a Log likelihood fit, TH1::Fit computes an "Equivalent Chisquare" by calling the function computing the sum of the squares of residuals of the normal chisquare method once the minimisation is terminated. See lines in TH1::Fit: //*-* If Log Likelihood, compute an equivalent chisquare if (Foption.Like) H1FitChisquare(npar, params, amin, params, 1); Bins with no entries are not taken into account Rene Brun Matthew Martin wrote: > > Hi Rene, > When I do something like: > > hist_bp_PtResidWeight->Fit("gaus","L"); > > how is the resulting chisquare defined? Ie how does it deal with the > possibility of some bins with zero events in them? > > cheers > > Mat
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:46 MET