Roofit statistics results on the plot

Dear ROot

I would like to know how to show the fit statistics results (goodness of fit, chi2…) on the plot after doing roofit.

Best regards
SeungCheon :slight_smile:

Hi SeungChon,

Class RooPlot has a chiSquare(Int_t nFloatParam) method that will return the reduced chi-squared of the histogram and curve shown in the plot. You need to supply the
number of floating fit parameters for the curve as argument.