Hi Paola, Use the functions from the TAxis classes, eg if you have a TH2 *h, do Double_t x = h->GetXaxis()->GetBinCenter(binx); Double_t y - h->GetYaxis()->GetBinCenter(biny); Rene Brun On Tue, 23 Apr 2002, Lecca Paola wrote: > Hi ! > > I have a 2D histogram: (binx, biny, bincontent). I want to know the > coordinates (x, y) of data entries per each bin. For example, if the point > 1, 2 and 10 belong to the bin 1, I want to produce a message like this > > binx_1, binyy_1 -> (x1, y1) (x3, y3) (x19, y10) > > How have I to do ? > > Thanks for any help, > Paola. >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:51 MET