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?
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(); w::g.plotOn(frame);
You have to get the elements of the workspace now with the accessor functions
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(); g.plotOn(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.