'BASIC FUNCTIONALITY' RooFit tutorial macro #109
Calculating chi^2 from histograms and curves in RooPlots, making histogram of residual and pull distributions
Processing /builddir/build/BUILD/root-6.10.00/tutorials/roofit/rf109_chi2residpull.C...
[1mRooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby[0m
Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please
read http:
chi^2 = 2.63198
using namespace RooFit ;
void rf109_chi2residpull()
{
sigma=3.15 ;
gauss.plotOn(frame1) ;
cout <<
"chi^2 = " << frame1->
chiSquare() << endl ;
TCanvas* c =
new TCanvas(
"rf109_chi2residpull",
"rf109_chi2residpull",900,300) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf109_chi2residpull.C.