Re: [ROOT] Re- TVectorD pb (fwd)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 19 2002 - 15:27:56 MEST


Hi Sebastien,

You have very serious scope problems  in your code. Nothing to
do with ROOT.

In your function getrootuple::getGTracks, you define
 TVectorD helix1(5);
 TMatrixD error1(5,5);
then you create tracks objects using the helix1 and error1 arrays.

THESE OBJECTS ARE AUTOMATICALLY DELETED when you leave getTracks,
you cannot use them in the calling function.

Rene Brun

On Wed, 19 Jun 2002, Sebastien Greder wrote:

> 
> Here are the different files :
> 
> /afs/in2p3.fr/home/g/greder/public/example.tar.gz
> 
> Thanks,
> sebastien. 
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:57 MET