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
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:
Check all draw options here: https://root.cern.ch/doc/master/classTHistPainter.html#HP01c
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?