There seems to be a problem with plotting RooDataSet’s in PyROOT:
from ROOT import *
x = RooRealVar(“x”, “x”, 0.0, 10.0)
data = RooDataSet(“data”, “data”, RooArgSet(x))
frame = x.frame()
data.plotOn(frame)
Traceback (most recent call last):
File “”, line 1, in
TypeError: none of the 2 overloaded methods succeeded. Full details:
RooPlot* RooTreeData::plotOn(RooPlot* frame, const RooLinkedList& cmdList) =>
takes at least 2 arguments (1 given)
RooPlot* RooTreeData::plotOn(RooPlot* frame, RooTreeData::PlotOpt o) =>
takes at least 2 arguments (1 given)
you can try passing it plot options, but then it crashes, for example:
data.plotOn(frame, RooFit.LineColor(kBlue))
*** Break *** segmentation violation
/Users/mschmid7/Physics/alpGenPdfs/3502: No such file or directory.
Attaching to process 3502.
Reading symbols for shared libraries . done
Reading symbols for shared libraries … done
0x90029f07 in wait4 ()
========== STACKS OF ALL THREADS ==========
I’m using ROOT version 5.18/00 (downloaded binaries), python version 2.5, and I’m running on Mac OS-X 10.4. I have no problems plotting anything else in ROOT or RooFit, and a similar script written in C produces the desired blank RooPlot
Thanks