36void rf210_angularconv()
48 RooRealVar gbias(
"gbias",
"gbias", 0.2, 0., 1);
49 RooRealVar greso(
"greso",
"greso", 0.3, 0.1, 1.0);
50 RooGaussian Rpsi(
"Rpsi",
"Rpsi", psi, gbias, greso);
66 Mpsi.setBufferFraction(0);
72 RooDataSet *data_psi = Mpsi.generate(psi, 10000);
75 Mpsi.fitTo(*data_psi);
95 Mcpsi.setBufferFraction(0);
101 RooDataSet *data_cpsi = Mcpsi.generate(cpsi, 10000);
104 psi.setConstant(
true);
107 Mcpsi.fitTo(*data_cpsi);
110 RooPlot *frame2 = cpsi.
frame(
Title(
"Same convolution in psi, expressed in cos(psi)"));
111 data_cpsi->
plotOn(frame2);
112 Mcpsi.plotOn(frame2);
118 TCanvas *
c =
new TCanvas(
"rf210_angularconv",
"rf210_angularconv", 800, 400);
121 gPad->SetLeftMargin(0.15);
125 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.
static RooPlot * frame(const RooAbsRealLValue &var, Double_t xmin, Double_t xmax, Int_t nBins)
Create a new frame for a given variable in x.
virtual void Draw(Option_t *options=0)
Draw this plot and all of the elements it contains.
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.
RooCmdArg LineColor(Color_t color)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...