Difference between TNtuple.Draw and TTree.Draw?

Hi again,

what is the difference between

someNTuple.Draw("system:time", "", "lsame")
vs.

someTTree.Draw("system:time", "", "lsame")

aside from the fact that the data in the tree are more highly structured and can be different types?

Combining some NTuple.Draws seems to work, but combining a few TTree.Draws of the same data (subset) does not seem to access the same data as when I do

someTTree.Draw("system:time>>hs", "", "lsame").

Thanks & regards,
Roland

[code] _canvas = TCanvas(“combiCanvas”, drawTitle, _windowX, _windowY, _width, _height)
_canvas.cd(0)
_canvas.Range(_xmin, _ymin, _xmax, _ymax)

# First plot histogram to set the frame
# -------------------------------------
h2 = TH2F("h2", "h2 title", 5, 0.0, 100.0, 5, 0.0, 100.0)
h2.SetTitle(drawTitle)
gStyle.SetOptStat(0)
h2.Draw()

# combine usage plots
# -------------------
gStyle.SetOptStat(0)
theTree.SetLineWidth(2)
for _i, _params in enumerate(drawParams):          
    theTree.SetLineColor(_i+2) 
    theTree.Draw(_params[0], _settings['drawFilter'], _settings['drawStyle']+'same' )[/code]

Hi,

[quote]aside from the fact that the data in the tree are more highly structured and can be different types?[/quote]There is literally no difference (as TNtuple does not implement Draw and thus someNTuple.Draw calls TTree::Draw).

[quote]Combining some NTuple.Draws seems to work, but combining a few TTree.Draws of the same data (subset) does not seem to access the same data as when I do [/quote]So the difference must be in the way you stored in the data in the TTree.

Philippe.