2D histogram FindBin

Hello,

I fit a 2D Gaussian on a 2D histogram. Then I would like to look at slices at certain positions. The FindBin(x,y) method gives me the bin number corresponding to the the position of (x,y) but how can I retrieve bin coordinates along each axis out of it?

Thank you

Philippe

TH2* h;
int binx = h->GetXaxis()->FindBin(x);
int biny = h->GetYaxis()->FindBin(y);
double bincenter = h->GetXaxis()->GetBinCenter(binx);
etc

Rene