Re: Default values of transient data members

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 31 Aug 2007 12:40:04 +0200


We are currently discussing a possible solution to this type of requirement. The difficulty is to support both member-wise streaming (split mode) and object-wise streaming.
The temporary solution is to prevent the split mode for the class in your TClonesArray
and implement a custom class streamer.

Rene Brun

Constantin Loizides wrote:
> Hi all,
>
> this is probably a question to Philippe, but anyways
> I am going to post it in public. Philippe had mentioned in
> some post to one of the CMS mailing lists that he is
> planning to implement the feature to (re-)set default values
> for transient data members.
>
> The use case for me would be to reset computational intensive
> and therefore cached (transient) members of a given class
> that is hold in a TClonesArray. Since I do not want to
> forbid bypassing of the class streamer for optimized
> write/reads I can not implement a custom streamer that
> would reset my cache. (that's at least how I understand
> the users guide and parts of the code that I checked).
>
> So my question is
> a) When can one expect the "![N]" feature to be implemented?
> b) In the mean-time is there another solution to this?
>
> Thanks,
> Constantin
>
Received on Fri Aug 31 2007 - 12:40:11 CEST

This archive was generated by hypermail 2.2.0 : Fri Aug 31 2007 - 17:50:02 CEST