Create RooStats expressions from C++ functions

Hi all,

I would need to implement in my RooStats code a function that could not be expressed in an analytical way. Could I embed in a RooStats workspace a C++ function as an expression (as I may do with TF1 objects)?
If yes, is there any documentation about that?
Thank you!


Hi Michele,

Have a look at RooGenericPdf in $ROOTSYS/roofit/roofitcore. I think it might be what you are looking for.