Re: [ROOT] track coordinates again

From: Andrei Gheata (Andrei.Gheata@cern.ch)
Date: Fri Mar 05 2004 - 17:14:27 MET


Hi Nicolas,

The getter is already there:
Double_t *TGeoManager::GetCurrentPoint() const
representing the array: (X,Y,Z) in global coordinate system. The same 
about the current direction:
Double_t *TGeoManager::GetCurrentDirection() const

Note that you can modify X,Y,Z by using this getter, but if doing that 
you will have to call gGeoManager->FindNode() to update the modeller state.

Regards,
Andrei

Nicolas Produit wrote:

> Hi,
>
> any comments on my proposition to include a getter
> for fPoint in TGeoManage?
>
> Thanks
>
>
>
> -------- Original Message --------
> Subject: [ROOT] track ccordinates
> Date: Mon, 01 Mar 2004 16:12:27 +0100
> From: Nicolas Produit <Nicolas.Produit@obs.unige.ch>
> To: roottalk@pcroot.cern.ch
>
> Hi,
>
> I try to draw the path of a track using TGeoManager.
> I can start from where I want and in the direction I want with InitTrack.
> I can step. I can easily know in wich node or volume the track is
> but not at wich global coordinate point.
> Can you add a getter for fPoint in TGeoManage?
>
> Thanks
>



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET