Re: [ROOT] Clone

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Apr 13 2001 - 10:39:05 MEST


Hi Patrice,
Yes, just declare fArray not persistent (Clone uses Streamer internally)
     TArrayF * fArray;   //!

Rene Brun


On Fri, 13 Apr 2001, Patrice Lebrun wrote:

> Bonjour,
> 
>   I defined this following class
> 
> class foo : public TObject
> {
>    private:
> 
>     TArrayF * fArray;
>      ....
> 
>    public:
>       ....
> }
> when we do:
> foo a;
> foo* pfoo = (foo*) a.Clone();
> 
> Is there a simple way to do not clone the TArrayF object ?
> 
> Thank you
> 
> 
> --
> Patrice Lebrun                   L3-D0
> Institut de Physique Nucleaire de Lyon
> Phone: 04 72 44 84 43
> Fax:   04 72 43 14 52
> 
> 
> 



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