Multidimensional models: normalization and integration of pdfs, construction of cumulative distribution functions from pdfs in two dimensions 
 
  
 
{
   
   
 
   
 
   
 
   
 
   
   
 
   
   cout << "gxy = " << gxy.getVal() << endl;
 
   
   cout << "gx_Norm[x,y] = " << gxy.getVal(&nset_xy) << endl;
 
   
   
   std::unique_ptr<RooAbsReal> igxy{gxy.createIntegral(
RooArgSet(
x, 
y))};
 
   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;
 
   
   
 
   
   
   std::unique_ptr<RooAbsReal> gxy_cdf{gxy.createCdf(
RooArgSet(
x, 
y))};
 
 
   
 
   new TCanvas(
"rf308_normintegration2d", 
"rf308_normintegration2d", 600, 600);
 
   gPad->SetLeftMargin(0.15);
 
}
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
RooProdPdf is an efficient implementation of a product of PDFs of the form.
 
RooRealVar represents a variable that can be changed from the outside.
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
virtual void SetLineColor(Color_t lcolor)
Set the line color.
 
TH1 is the base class of all histogram classes in ROOT.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
RooCmdArg YVar(const RooAbsRealLValue &var, const RooCmdArg &arg=RooCmdArg::none())
 
RooCmdArg NormSet(Args_t &&... argsOrArgSet)
 
RooCmdArg Binning(const RooAbsBinning &binning)
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
   
gxy = 0.485672
gx_Norm[x,y] = 0.0129332
gx_Int[x,y] = 37.5523
gx_Norm[x] = 0.106896
gx_Norm[y] = 0.120989
[#1] INFO:Eval -- RooRealVar::setRange(x) new range named 'signal' created with bounds [-5,5]
[#1] INFO:Eval -- RooRealVar::setRange(y) new range named 'signal' created with bounds [-3,3]
gx_Int[x,y|signal]_Norm[x,y] = 0.572035
- Date
 - July 2008 
 
- Author
 - Wouter Verkerke 
 
Definition in file rf308_normintegration2d.C.