Basic functionality: Calculating chi^2 from histograms and curves in RooPlots, making histogram of residual and pull distributions
Definition in file rf109_chi2residpull.C.