Statistics box with TTree->Draw()

I draw some TH2F histograms with:

(TH2F*)MyTree->Draw(leave1,cut1);

I want to add some statistics via:

gStyle->SetOptStat(11111);

This does not work for TTree->Draw(). How do I add statistics?

I noticed that for 1D histograms the default option is already set to show the statistics display.

Niels

When drawing 2-d or 3-d scatter-plots
the stats box is not shown if the resulting histogram is the default “htemp”.
In this case the 2-d histogram is not filled at all. It is used only to draw the frame
for the TGraph object showing the scatter plot.
If instead of
mytree->Draw(“vy:vx”,“selection”)
you do
mytree->Draw(“vy:vx>>myhist”,“selection”," ")
you will see the stats box. Note the non-null
draw option.

Rene