31void rf210_angularconv()
43 RooRealVar gbias(
"gbias",
"gbias", 0.2, 0., 1);
44 RooRealVar greso(
"greso",
"greso", 0.3, 0.1, 1.0);
45 RooGaussian Rpsi(
"Rpsi",
"Rpsi", psi, gbias, greso);
61 Mpsi.setBufferFraction(0);
67 RooDataSet *data_psi = Mpsi.generate(psi, 10000);
70 Mpsi.fitTo(*data_psi);
73 RooPlot *frame1 = psi.frame(
Title(
"Cyclical convolution in angle psi"));
90 Mcpsi.setBufferFraction(0);
96 RooDataSet *data_cpsi = Mcpsi.generate(cpsi, 10000);
99 psi.setConstant(
true);
102 Mcpsi.fitTo(*data_cpsi);
105 RooPlot *frame2 = cpsi.frame(
Title(
"Same convolution in psi, expressed in cos(psi)"));
106 data_cpsi->
plotOn(frame2);
107 Mcpsi.plotOn(frame2);
113 TCanvas *
c =
new TCanvas(
"rf210_angularconv",
"rf210_angularconv", 800, 400);
116 gPad->SetLeftMargin(0.15);
120 gPad->SetLeftMargin(0.15);
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Calls RooPlot* plotOn(RooPlot* frame, const RooLinkedList& cmdList) const ;.
RooDataSet is a container class to hold unbinned data.
PDF for the numerical (FFT) convolution of two PDFs.
RooGenericPdf is a concrete implementation of a probability density function, which takes a RooArgLis...
A RooPlot is a plot frame and a container for graphics objects within that frame.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
Template specialisation used in RooAbsArg:
RooCmdArg LineColor(Color_t color)