Hi Jan,
Inheriting from TClonesArray is not supported. Instead you will need to
embedded a TClonesArray
into your class (as a data member) and 'forward' part or all the
TClonesArray to your class (via
inline member function for example).
Cheers,
Philippe.
PS. Out of curiosity what is the 'additional member function' you are interested in adding?
On 1/26/10 11:38 AM, Jan Hartmann wrote:
> 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:48:14 CET
This archive was generated by hypermail 2.2.0 : Tue Jan 26 2010 - 23:50:01 CET