ROOT 6.14/05 Reference Guide |
Echo object at mouse position and show a graphics line.
Example of macro called when a mouse event occurs in a pad.
Example:
When moving the mouse in the canvas, a second canvas shows the projection along X of the bin corresponding to the Y position of the mouse. The resulting histogram is fitted with a gaussian. A "dynamic" line shows the current bin position in Y. This more elaborated example can be used as a starting point to develop more powerful interactive applications exploiting CINT as a development engine.
Definition in file exec2.C.