35void rf210_angularconv()
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 RooDataSet *data_psi = Mpsi.generate(psi, 10000);
74 Mpsi.fitTo(*data_psi);
94 Mcpsi.setBufferFraction(0);
100 RooDataSet *data_cpsi = Mcpsi.generate(cpsi, 10000);
103 psi.setConstant(
true);
106 Mcpsi.fitTo(*data_cpsi);
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);
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
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...