BinWidth in TH2

Hi,

can I somehow access a bin width in TH2F as a binwidth_x*binwidth_y (an area covered by a particular bin)?

As I understood for TH2 TH1::GetBinWidth is not overloaded, so it will simply return me bin length along X-axis. Perhaps there is another method?

Thank you.

Kirill

Use functions from TAxis for TH1,2,3, eg

myhist->GetXaxis()->GetBinLowEdge(bin); myhist->GetXaxis()->GetBinWidth(bin); myhist->GetXaxis()->GetBinUpEdge(bin);
Rene

1 Like