Simple way to check a track crossing a TGeoNode object?

Hi,
I am looking for a fast and simple solution to indicate if a track crosses a TGeoNode object?

Some function like:

AGeoNode->Cross(const TGeoTrack *track);

or

AGeoTrack->Cross(const TGeoNode * node);

I don’t think such functions are available, anyone would give me a hint how to do that?

Thanks,
Zhiyi.

Hi,
No there is no such interface in TGeoTrack or TGeoNode, but you should just extract the track position and direction, then use the standard navigation interface, described under “Navigation and tracking” in the user manual:
ftp://root.cern.ch/root/doc/18Geometry.pdf

best, Andrei