GetBinContent() for x-axis

Hi all,

When I call ;

I get the output corresponding to y-axis of the input ‘test’ bin. I would like to have the value of the x-axis at that bin number but can’t seem to achieve that. It’s a 1D histogram.

Thanks

Choose the one you prefer:

virtual Double_t	GetBinCenter(Int_t bin) const
virtual Double_t	GetBinLowEdge(Int_t bin) const
virtual Double_t	GetBinUpEdge(Int_t bin) const

Help here: root.cern.ch/root/html/TAxis.html

[quote=“couet”][quote]
I would like to have the value of the x-axis at that bin number
[/quote]

Choose the one you prefer:

virtual Double_t	GetBinCenter(Int_t bin) const
virtual Double_t	GetBinLowEdge(Int_t bin) const
virtual Double_t	GetBinUpEdge(Int_t bin) const

Help here: root.cern.ch/root/html/TAxis.html[/quote]

Thank you.