I created a skeleton PDF from RooFit according to the official documentation (page 34) and compiled it. But how can I call this new PDF class from python?
Hi,
assuming there’s a dictionary for it, it should work out-of-the-box. If not, please post some code.
Cheers,
Wim
Hi and sorry for giving so little information, It is solved now.
I’ve created a empty skeleton RooFit PDF like this:
RooClassFactory::makePdf(“RooMyPdf”,”x,alpha”) ;
then I start root in the according folder “PDFfolder” and “compile and link” the class with
root>.L RooMyPdf.cxx+
which gives correct output and creates the dictionary:
Info in TUnixSystem::ACLiC: creating shared library pathname/PDFfolder/./RooMyPdf_cxx.so
I was able to load the class now with
ROOT.gSystem.Load(‘RoomyPdf_cxx.so’)