Enterria David wrote:
>
> Hi everybody !
>
> I am interested in storing into a vector the (x,y) values of a histogram
> point by clicking on it with the mouse.
> i.e. I want to know if there exists something in ROOT equivalent to the
> PAW instructions:
>
> vloca x y *
> aa=x(1)
> bb=y(1)
> ...
This is implemented via the graphics editor (EDIT pull down menu).
Select the item CutG, click on the selected points.
You can set a name for the CUTG object (default name is CUTG)
by using the context menu.
You can get a pointer to the CUTG object in the current pad with
a statement like
TCutG *cut = (TCutG*)gPad->GetPrimitive("CUTG")
Rene Brun
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:35 MET