Re: [ROOT] TGeoBBox::CouldBeCrossed reject useful track

From: Andrei Gheata (Andrei.Gheata@cern.ch)
Date: Wed Jun 04 2003 - 09:03:56 MEST


  Hi Fedor,

You are right. I haven't seen the bug since the method is not used by 
navigation algorithms. Thank you for reporting it. The fix will be in 
CVS today.

Regards,
Andrei

Fedor V. Ignatov wrote:
> Hi,
> The Function 
> "Bool_t TGeoBBox::CouldBeCrossed(Double_t *point, Double_t *dir) const"
> can reject useful track. It looks like misprint in last equation.   
> If i understand clearly, this condition for the intersection  of line
> with circle, then I think It must be like this:	
> 112c112,114
> from  <    if ((doct*doct)<=(do2-rmax2)) return kTRUE;
> ---
> to    >    Double_t dirnorm=dir[0]*dir[0]+dir[1]*dir[1]+dir[2]*dir[2];
>       >    if ((doct*doct)>=(do2-rmax2)*dirnorm) return kTRUE;
> 
> 
> Best regards.
> 
> Fedor Ignatov 
> 
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET