Plotting a root output in the same canvas

Hi,

I’ve been going through the forum for a while but this is my first question. I’m very new to root. My issue is with plotting the results of a simulation. My output is made of an outtree, from which I plot the “Ener1” leaf with the command (I attach a screen if it can help):

outTree->Draw(“Ener1>>h1(4096,0,1000”)

Now, if I would like to plot another output in the same canvas, but if I do:

outTree->Draw("Ener1>>h1(4096,0,1000"“SAME”)

I don’t get the result I want. I’ve tried with THStack or MultiGraph, but with no luck.

How can I solve my problem?
Thank you,
Matteo

_ROOT Version:_6.26/06

outTree->Draw("Ener1>>h1(4096,0,1000)");
outTree->Draw("Ener1>>h1(4096,0,1000)", "", "SAME");

Thank you very much,

Matteo