Determination of a point in TH2D histogram

Is there a way to use the mouse and click on apoint of a 2-D histogram & get its X-Y coordinate printed?
Also, if I want to print the the (x,y) coordinates of the scattered points in the histogram itself , is there a way to do that?

Activate the “Event Status Bar” from the TCanvas menu bar (“View Menu”).

Hi,

Please see the attached example.

Cheers, Ilka
exec3.C (904 Bytes)