I built a RooHistPdf object :
RooHistPdf* pdf = new RooHistPdf ( "pdf", "", RooArgSet( mES, deltaE ), datasetForPdf, 3 );
and want to turn it into an Extended pdf with RooExtendPdf by using
RooRealVar n ( "n", "", 300., 0., 20000. );
RooExtendPdf pdf_ext ( "pdf_ext", "", pdf, n, "" );
But the problem is the constructor of RooExtendPdf only accepts
RooAbsPdf, and despite RooHistPdf belongs to RooAbsPdf I could’nt make
it work.
I tried to turn “pdf” into a RooAbsPdf using
RooAbsPdf pdf_abs ("pdf_abs","",RooArgSet(*pdf) );
or
RooAbsPdf pdf2 = *pdf;
But that failed too.
Does anyone has an idea ?
Thanks,
Xavier