1D-Histrogram with defined bins number and bin width

Hello,

I am new to Root. I want to plot a 1d histogram from a text file and I want the number of bins to be independent from the x-range.

I have 3 conditions:

  • I do not want to set an x range
  • I want to use 1000 bins
  • I want to set the bin width to specific value

I really appreciate if you can help on this!

ROOT Version: v6-10-04
Platform: Not Provided
Compiler: Not Provided

Hello,

I would suggest to start by looking at the TH1 documentation:

or the ROOT manual:

Also this link can be useful: