[ROOT] Re: your mail

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Apr 10 2001 - 21:05:38 MEST


Hi Luca,

Many Root DistancetoPrimitive functions return a big number such as 99999
when the mouse is too far from the object. This is likely the case
in your example.

Rene Brun

On Tue, 10 Apr 2001, Luca Doria wrote:

> Hi all.
> I have some problems with DistancetoPrimitive.
> My code is:
> 
>   pad3->cd();
>   graph1 = new TGraphErrors(16,eff,bkr,e1,ErrBR);
>   graph1->Draw("CP");
> 
>   Int_t pointmaxX = pad3->XtoPixel(1.0);
>   Int_t pointmaxY = pad3->YtoPixel(1.0);
>   printf("PIXELS: %d,%d\n",pointmaxX,pointmaxY);
>   Int_t pixeldist = graph1->DistancetoPrimitive(pointmaxX,pointmaxY);
>   printf("Pixeldist: %d\n",pixeldist);
> 
>   The promlem is that pixeldist is always equal to 99999...
> 
>   Thanks!
> 
>   Luca.
> 
> 
> 
>      +------------------------------------------------------+
>      |Luca Doria                                            |
>      |                                                      |
>      |Dipartimento di Fisica                                |
>      |Via Sommarive, Povo (TN)                              |
>      |Facolta' di Scienze MM.FF.NN , Universita' di Trento  |
>      |                                                      |
>      |Tel (Dip.Fis) : (+39) 0461-881525                     |
>      |e.mail ldoria@science.unitn.it                        |
>      |        doria@fnal.gov                                |
>      +------------------------------------------------------+
> 
> 
> 



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