47 RooEffProd modelEff(
"modelEff",
"model with efficiency", model, eff);
58 modelEff.plotOn(frame2);
65 RooDataSet *data = modelEff.generate(t, 10000);
68 modelEff.fitTo(*data);
73 modelEff.plotOn(frame3);
75 TCanvas *
c =
new TCanvas(
"rf703_effpdfprod",
"rf703_effpdfprod", 1200, 400);
78 gPad->SetLeftMargin(0.15);
82 gPad->SetLeftMargin(0.15);
86 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.
The class RooEffProd implements the product of a PDF with an efficiency function.
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)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...