'SPECIAL PDFS' RooFit tutorial macro #706
Histogram based p.d.f.s and functions
Processing /builddir/build/BUILD/root-6.10.00/tutorials/roofit/rf706_histpdf.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:
using namespace RooFit ;
void rf706_histpdf()
{
x.setBins(20) ;
RooHistPdf histpdf1(
"histpdf1",
"histpdf1",x,*hist1,0) ;
histpdf1.plotOn(frame1) ;
x.setBins(10) ;
RooHistPdf histpdf2(
"histpdf2",
"histpdf2",x,*hist2,2) ;
RooPlot* frame2 = x.frame(
Title(
"High stats histogram pdf with interpolation"),
Bins(100)) ;
histpdf2.plotOn(frame2) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf706_histpdf.C.