'SPECIAL PDFS' RooFit tutorial macro #703
Using a product of an (acceptance) efficiency and a p.d.f as p.d.f.
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf703_effpdfprod.C...
void rf703_effpdfprod()
{
RooEffProd modelEff(
"modelEff",
"model with efficiency",model,eff) ;
RooPlot* frame2 = t.frame(
Title(
"Pdf with and without efficiency")) ;
modelEff.plotOn(frame2) ;
modelEff.fitTo(*data) ;
RooPlot* frame3 = t.frame(
Title(
"Fitted pdf with efficiency")) ;
modelEff.plotOn(frame3) ;
TCanvas* c =
new TCanvas(
"rf703_effpdfprod",
"rf703_effpdfprod",1200,400) ;
}
- Author
- 07/2008 - Wouter Verkerke
Definition in file rf703_effpdfprod.C.