Re: class inherited from TClonesArray

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 26 Jan 2010 18:46:56 +0100


Hi Jan,

TClonesArray gets a special treatment in some places - you shouldn't derive from it (but in C++ there's no way to state that...) What is the extra functionality that you are missing - maybe there's some other way we can provide it?

Cheers, Axel.

Jan Hartmann wrote on 01/26/2010 06:38 PM:
> Hi,
>
> I am trying to write a class which is basically a TClonesArray with some
> additional public member functions. Unfortunately, if I create a branch
> containing an object of this class, it is not split. If I use TClonesArray
> instead, a subbranch for each member is created. Is there any way to get that
> behavior with my own class (inherited from TClonesArray)?
> I have attached a minimal version of my class and a macro (my_clonesarray.C)
> that shows the different behavior.
>
> Thanks in advance for any help,
> Jan
>
>
>
Received on Tue Jan 26 2010 - 18:43:43 CET

This archive was generated by hypermail 2.2.0 : Tue Jan 26 2010 - 23:50:01 CET