45 cout <<
"gxy = " << gxy.getVal() << endl;
49 cout <<
"gx_Norm[x,y] = " << gxy.getVal(&nset_xy) << endl;
53 std::unique_ptr<RooAbsReal> igxy{gxy.createIntegral(
RooArgSet(
x,
y))};
54 cout <<
"gx_Int[x,y] = " << igxy->getVal() << endl;
60 cout <<
"gx_Norm[x] = " << gxy.getVal(&nset_x) << endl;
64 cout <<
"gx_Norm[y] = " << gxy.getVal(&nset_y) << endl;
70 x.setRange(
"signal", -5, 5);
71 y.setRange(
"signal", -3, 3);
77 cout <<
"gx_Int[x,y|signal]_Norm[x,y] = " << igxy_sig->getVal() << endl;
84 std::unique_ptr<RooAbsReal> gxy_cdf{gxy.createCdf(
RooArgSet(
x,
y))};
90 new TCanvas(
"rf308_normintegration2d",
"rf308_normintegration2d", 600, 600);
91 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())
RooConstVar & RooConst(double val)
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...