Re: [ROOT] getting coordinates from an histogram with the mouse

From: Otto.Schaile@Physik.uni-muenchen.de
Date: Mon Jul 02 2001 - 17:58:47 MEST


Hi Nicolas,
could you please consult this URL:

http://root.cern.ch/root/htmldoc/TPad.html#TPad:AddExec

Cheers
Otto

On Mon, 2 Jul 2001, Nicolas de Sereville wrote:

> Hi rooters,
> 
> I'm new to ROOT so excuse me if my question is too obvious or if it has
> already been answered.
> 
> I have a TH1F object and I want to get the coordinates of some points of
> this histogram using the mouse. This should make part of a script where I
> can store in a vector the coordinates of each point. How can I do that?
> 
> If I activate the Event Status Bar I see the coordinates of the mouse. Is
> there an easy way to get these coordinates or is it more complicated?
> 
> Thanks in advance
> 
> Nicolas
> 
> 
> -- 
> :-------------------------------:
> :     Nicolas DE SEREVILLE      :
> :         C.S.N.S.M.            :
> :        Batiment 104           :
> :     91405 ORSAY Campus        :
> : Tel : (+ 33) (0)1 69 15 48 57 :
> : Fax : (+ 33) (0)1 69 15 50 08 :
> :-------------------------------:
> 
> 
> 
> 

Otto Schaile            Sektion Physik, LMU Muenchen
Phone: +49 89 289 14070     Am Coulombwall 1, D-85748 Garching, Germany
GSM:   +49 160 1553598
FAX:   +49 89 289 14072     EMail: Otto.Schaile@Physik.Uni-Muenchen.DE



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:51 MET