Re: [ROOT] TNode::IsIn(x,y,z) and TNode::DistanceToEdge(x,y,z)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jan 16 2001 - 21:58:42 MET


Hi Christian,
No, TNode/TGeometry do not provide the equivalent of the Geant3
geometry package. I am well aware that we have many requests
to provide a coherent geometry system.
We are currently exploring several directions.
In the framework of the ALICE experiment, we have developed
the AliRoot system that includes a set of classes such as
TGeant3 and TGeant4 that provide a full interface to the
Geant3 and Geant4 simuation systems.

Rene Brun

On Tue, 16 Jan 2001, Christian Holm Christensen wrote:

> Hi ROOT'ers, 
> 
> Given a TGeometry and three spatial cordinates (x,y,z), is
> there anyway to determind in which TNode that point is inside? 
> (a la GEANT's GMEDIA)
> 
> And given a TNode and spatial coordinates, is it possible to find the
> distance to the closest edge of that TNode?  
> 
> Also given a TNode, spatial coordinates and a direction (vx, vy, vz)
> is it possible to find the distance to the next node boundary? 
> (a la GEANT's GNEXT) 
> 
> Have I just overlooked something? Or isn't there? If it isn't I'd like
> to suggest having something like:
> 
>    TNode* TGeometry::FindNode(Double_t x, Double_t y, Double_t z);
>    Double_t TNode::DistanceToEdge(Double_t x, Double_t y, Double_t z);
>    Double_t TNode::DistanceToEdge(Double_t x,  Double_t y,  Double_t z, 
> 				  Double_t vx, Double_t vy, Double_t vz);
> 
> 
> Am I rigth in believing that g2root doens't support devisions of
> volumes? And will the TNodeDiv class be implemented? 
> 
> Also, has any one tried to have a GEANT geometry in a MySQL database
> and use the same database for offline analysis in ROOT? If so, I'd
> like to see how you did it.
> 
> Thanks. 
> 
> Yours, 
> 
> Christian  -----------------------------------------------------------
> Holm Christensen                             Phone:  (+45) 35 35 96 91 
>   Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
>   DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
>   Denmark                                    Email:       cholm@nbi.dk
> 



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