Re: call to streamer, 2nd

From: Rene BRUN <brun_at_mail.cern.ch>
Date: Thu, 10 Feb 2005 21:53:29 +0100 (MET)


Hi Gero,

On Thu, 10 Feb 2005, Gero Flucke wrote:

> Hi,
> I have two further questions for clarification:
> (sorry, I am too fast in deleting mails, so I cannot answer
> 'in-thread'...)
>
> 1)
> The custom streamer of a class will be called when objects of that class
> reside inside a TClonesArray that is written to a tree since the
> TTree::Branch method detects this case and calls automatically
> TClonesArray::BypassStreamer(kFALSE) ?

True, but only in non-split mode

>
> 2)
> The custom streamer of a class will always be called if objects of that
> class are a data member of another class that is written as a whole
> (=unsplit) to a file by whatever mechansim ?

not true. The Tree split machinery detects if one member is a class that cannot be split. In this case there is one branch for this member and the Streamer of the class member is called, but the Streamer of the parent class is not called (since the class is split).

Rene Brun

>
> Cheers
>
> Gero
>
>
> --
> -----------------------------------------------------------------------
> Gero Flucke
> 1a / 603
> DESY
> Notkestr. 85
> 22607 Hamburg
> +49-(0)40-8998-2454
>
Received on Thu Feb 10 2005 - 21:53:34 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET