Drawing from a tree

Hi,

I have a tree with a branch. When i use the tree viewer to draw the branch values to have a histogram of “frequencies”, ROOT decides the size of the bins of the x axis, then drawing an incorrect histo.

I need “1value ,1 bin"
Usually i work around this setting manually the n° of bins, min bin and max bin of the histo using TTree->Draw(“data>>h1( 150,0,150)”,”","") [for example]

in this way i have to look the histos twice, losing a lot of time.

there is a quicker way to do this?

Thank you
Amir

If your branch variable is declared integer, what you want will happen automatically

Rene

Thank you!, i was declaring them as double

Amir