Re: ROOT's equivalent of PAW's "vlocate" ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jul 28 1998 - 13:13:51 MEST


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