'MULTIDIMENSIONAL MODELS' RooFit tutorial macro #308
Examples on normalization of p.d.f.s, integration of p.d.fs, construction of cumulative distribution functions from p.d.f.s in two dimensions
Processing /builddir/build/BUILD/root-6.10.00/tutorials/roofit/rf308_normintegration2d.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:
gxy = 0.485672
[#1] INFO:Eval -- RooRealVar::setRange(y) new range named 'signal' created with bounds [-3,3]
using namespace RooFit ;
void rf308_normintegration2d()
{
cout << "gxy = " << gxy.getVal() << endl ;
cout << "gx_Norm[x,y] = " << gxy.getVal(&nset_xy) << endl ;
cout <<
"gx_Int[x,y] = " << igxy->
getVal() << endl ;
cout << "gx_Norm[x] = " << gxy.getVal(&nset_x) << endl ;
cout << "gx_Norm[y] = " << gxy.getVal(&nset_y) << endl ;
x.setRange("signal",-5,5) ;
y.setRange("signal",-3,3) ;
cout <<
"gx_Int[x,y|signal]_Norm[x,y] = " << igxy_sig->
getVal() << endl ;
new TCanvas(
"rf308_normintegration2d",
"rf308_normintegration2d",600,600) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf308_normintegration2d.C.