Histogram construction~

Hello ROOT experts,

I’m new to ROOT and ROOT forum. Your help will be appreciated!
I want to construct a histogram of Pt within a certain azimuth range as follows:

azimuth (in radians): 8 bins from -pi to pi
Pt (GeV/c) : 6 bins from 0 to 0.5

Kindly help me with a code to construct this histogram.
_
ROOT Version: 6.16/00
Platform: macosx64
Compiler: clang-1100.0.33.17

Create and fill: https://root.cern.ch/root/roottalk/roottalk04/0861.html
For histogram reference, read here: https://root.cern.ch/root/html530/TH1.html
To draw, just use Draw(); for the example above, it would be:

  Eta_Pt->Draw();

Check all draw options here: https://root.cern.ch/doc/master/classTHistPainter.html#HP01c

Hello dastudillo,
I have checked the links you suggested.

Instead of a 2D histogram of Eta vs Pt, I rather want a 1D histogram filled with a 2 dimensional array.
I want Pt to explicitly depend on Eta.
Are you able to help me with a code?
Thanks~