import ROOT
Welcome to ROOTaaS 6.05/03
h = ROOT.TH1F('hello','hello',100,0,1)
h.FillRandom('gaus',1000)
c= ROOT.TCanvas('c1')
h.Draw()
c.Draw()
ROOT.enableJSVis()
c.Draw()
ROOT.disableJSVis()
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-5-9679148e58b9> in <module>() 1 ROOT.enableJSVis() ----> 2 c.Draw() 3 ROOT.disableJSVis() /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in _PyDraw(thePad) 368 """ 369 drawer = CanvasDrawer(thePad) --> 370 drawer.Draw() 371 372 /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in Draw(self) 360 361 def Draw(self): --> 362 self._display() 363 return 0 364 /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in _display(self) 354 else: 355 if self._canJsDisplay(): --> 356 self._jsDisplay() 357 else: 358 self._pngDisplay() /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in _jsDisplay(self) 324 # Workaround to have ConvertToJSON work 325 pad = ROOT.gROOT.GetListOfCanvases().FindObject(ROOT.gPad.GetName()) --> 326 json = ROOT.TBufferJSON.ConvertToJSON(pad, 3) 327 #print "JSON:",json 328 /Users/cranmer/projects/roostats/root-v5-34/lib/ROOT.pyc in __getattr2(self, name) 445 446 # reaching this point means failure ... --> 447 raise AttributeError( name ) 448 449 def __delattr__( self, name ): AttributeError: TBufferJSON
h.Draw()
c.Draw()
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-6-bdf7a7f888bc> in <module>() 1 h.Draw() ----> 2 c.Draw() /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in _PyDraw(thePad) 368 """ 369 drawer = CanvasDrawer(thePad) --> 370 drawer.Draw() 371 372 /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in Draw(self) 360 361 def Draw(self): --> 362 self._display() 363 return 0 364 /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in _display(self) 354 else: 355 if self._canJsDisplay(): --> 356 self._jsDisplay() 357 else: 358 self._pngDisplay() /Users/cranmer/projects/roostats/root-v5-34/lib/ROOTaaS/iPyROOT/utils.pyc in _jsDisplay(self) 324 # Workaround to have ConvertToJSON work 325 pad = ROOT.gROOT.GetListOfCanvases().FindObject(ROOT.gPad.GetName()) --> 326 json = ROOT.TBufferJSON.ConvertToJSON(pad, 3) 327 #print "JSON:",json 328 /Users/cranmer/projects/roostats/root-v5-34/lib/ROOT.pyc in __getattr2(self, name) 445 446 # reaching this point means failure ... --> 447 raise AttributeError( name ) 448 449 def __delattr__( self, name ): AttributeError: TBufferJSON
dir(ROOT.RooFit)
['BulkPartition', 'Caching', 'Contents', 'DEBUG', 'DataHandling', 'ERROR', 'Eval', 'FATAL', 'Fitting', 'Generation', 'Hybrid', 'INFO', 'InputArguments', 'Integration', 'Interleave', 'LinkStateMgmt', 'Minimization', 'NumIntegration', 'ObjectHandling', 'Optimization', 'PROGRESS', 'Plotting', 'SimComponents', 'Tracing', 'WARNING', '__add__', '__bool__', '__class__', '__delattr__', '__destruct__', '__dict__', '__dispatch__', '__div__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__mul__', '__ne__', '__new__', '__nonzero__', '__radd__', '__rdiv__', '__reduce__', '__reduce_ex__', '__repr__', '__rmul__', '__rsub__', '__scope__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__weakref__', '_get_smart_ptr']