44 cout <<
"gxy = " << gxy.getVal() << endl;
48 cout <<
"gx_Norm[x,y] = " << gxy.getVal(&nset_xy) << endl;
52 std::unique_ptr<RooAbsReal> igxy{gxy.createIntegral(
RooArgSet(
x,
y))};
53 cout <<
"gx_Int[x,y] = " << igxy->getVal() << endl;
59 cout <<
"gx_Norm[x] = " << gxy.getVal(&nset_x) << endl;
63 cout <<
"gx_Norm[y] = " << gxy.getVal(&nset_y) << endl;
69 x.setRange(
"signal", -5, 5);
70 y.setRange(
"signal", -3, 3);
76 cout <<
"gx_Int[x,y|signal]_Norm[x,y] = " << igxy_sig->getVal() << endl;
83 std::unique_ptr<RooAbsReal> gxy_cdf{gxy.createCdf(
RooArgSet(
x,
y))};
89 new TCanvas(
"rf308_normintegration2d",
"rf308_normintegration2d", 600, 600);
90 gPad->SetLeftMargin(0.15);
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Efficient implementation of a product of PDFs of the form.
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 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...