[ROOT] TGeoBBox::CouldBeCrossed reject useful track

From: Fedor V. Ignatov (ignatov@DX1CMD.inp.nsk.su)
Date: Tue Jun 03 2003 - 21:30:39 MEST


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