26 using namespace RooFit ;
29 void rf703_effpdfprod()
55 RooEffProd modelEff(
"modelEff",
"model with efficiency",model,eff) ;
65 RooPlot* frame2 =
t.frame(
Title(
"Pdf with and without efficiency")) ;
68 modelEff.plotOn(frame2) ;
80 modelEff.fitTo(*data) ;
83 RooPlot* frame3 =
t.frame(
Title(
"Fitted pdf with efficiency")) ;
85 modelEff.plotOn(frame3) ;
88 TCanvas* c =
new TCanvas(
"rf703_effpdfprod",
"rf703_effpdfprod",1200,400) ;
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...
RooCmdArg LineColor(Color_t color)
RooCmdArg Title(const char *name)
RooCmdArg LineStyle(Style_t style)
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
Plot dataset on specified frame.
RooRealVar represents a fundamental (non-derived) real valued object.
RooDataSet is a container class to hold unbinned data.
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.