A problem about RooWorkspace

Hello,I wrote a macro like this ,but I got a problem shown below.

I tried to solve ,but I was failed.What should I do next?

@moneta or @jonas could you please help? Thanks!


The export of RooWorkspace contents to namespaces doesn’t work anymore since ROOT 6.

This means you can to this anymore:

RooPlot *frame = w::x.frame();

You have to get the elements of the workspace now with the accessor functions var(), pdf(), function(), etc (see also the RooWorkspace documentation).

So you can do this:

RooRealVar* x = w.var("x");
RooAbsPdf* g = w.pdf("g");

RooPlot *frame = x.frame();

Hope this helps!

Thank you very much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.