Open
Description
See for comparison the screenshot below.
The upper plot was done with TTree.Draw
:
>>> import ROOT
>>> f = ROOT.TFile('DYJetsToLL.root')
>>> t = f.Get('Events')
>>> t.Draw('GenPart_pdgId')
The lower plot was done with RDataFrame.Histo1D
:
>>> import ROOT
>>> c = ROOT.TCanvas()
>>> h = ROOT.RDataFrame('Events', 'DYJetsToLL.root').Histo1D('GenPart_pdgId')
>>> h.Draw()
I've used ROOT 6.22/02 and you can download the file here: