'BASIC FUNCTIONALITY' RooFit tutorial macro #109
Calculating chi^2 from histograms and curves in RooPlots, making histogram of residual and pull distributions
Processing /mnt/build/workspace/root-makedoc-v610/rootspi/rdoc/src/v6-10-00-patches/tutorials/roofit/rf109_chi2residpull.C...
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.