47 RooRealVar gbias(
"gbias",
"gbias", 0.2, 0., 1);
48 RooRealVar greso(
"greso",
"greso", 0.3, 0.1, 1.0);
49 RooGaussian Rpsi(
"Rpsi",
"Rpsi", psi, gbias, greso);
65 Mpsi.setBufferFraction(0);
71 std::unique_ptr<RooDataSet> data_psi{Mpsi.generate(psi, 10000)};
78 data_psi->plotOn(frame1);
94 Mcpsi.setBufferFraction(0);
100 std::unique_ptr<RooDataSet> data_cpsi{Mcpsi.generate(cpsi, 10000)};
103 psi.setConstant(
true);
109 RooPlot *frame2 = cpsi.
frame(
Title(
"Same convolution in psi, expressed in cos(psi)"));
110 data_cpsi->plotOn(frame2);
111 Mcpsi.plotOn(frame2);
117 TCanvas *
c =
new TCanvas(
"rf210_angularconv",
"rf210_angularconv", 800, 400);
120 gPad->SetLeftMargin(0.15);
124 gPad->SetLeftMargin(0.15);
PDF for the numerical (FFT) convolution of two PDFs.
Implementation of a probability density function that takes a RooArgList of servers and a C++ express...
Plot frame and a container for graphics objects within that frame.
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
Variable that can be changed from the outside.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
RooCmdArg PrintLevel(Int_t code)
RooCmdArg LineColor(Color_t color)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...