Accessing PDF in RooWorkspace gives seg fault

Dear all,
I’m trying with the attached code to access a root file where a workspace with the output of a fit has been saved.

I can plot the data, I can print the PDF, but when I try to plot the pdf I have a segmentation fault.
The root file can be downloaded from

The code and the makefile are provided.
as well as the Roo* PDF classes that are needed.

How do I fix that?
RooRadiativeTail.h (2.05 KB)
RooBetaFun.h (1.15 KB)
RooGaussian3.h (2.12 KB)
makefile.txt (974 Bytes)
LikeScanSim.c (1.64 KB)


I will have a look and get back to you.