47 RooEffProd modelEff(
"modelEff",
"model with efficiency", model, eff);
58 modelEff.plotOn(frame2);
65 std::unique_ptr<RooDataSet>
data{modelEff.generate(t, 10000)};
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);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
The class RooEffProd implements the product of a PDF with an efficiency function.
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)
RooCmdArg LineStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...