Re: ROOT's equivalent of PAW's "vlocate" ?
Rene Brun (Rene.Brun@cern.ch)
Tue, 28 Jul 1998 13:13:51 +0200
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