Re: Setting an object name when adding to TFolder

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 30 Jan 2009 13:10:08 +0100


Make your BaseClass deriving from TNamed and give a name of your choice to each of your objects.

Rene Brun

Maxim Gonchar wrote:
> Hello,
>
> I have two classes (Class1 and Class2) that inherit from a BaseClass and
> when I add an instance to the TFolder, they are added as Class1 and
> Class2.
> But the thing I want is to retrieve Class1 or Class2 by the same name (I
> can have only one of them at the same time). It can be BaseClass name, or
> a name defined when adding to TFolder.
>
> Is there any way of ding it?
>
> Thank you in advance.
>
> regards, Maxim Gonchar
> mailto:gonchar_at_nusun.jinr.ru
>
Received on Fri Jan 30 2009 - 13:04:05 CET

This archive was generated by hypermail 2.2.0 : Fri Jan 30 2009 - 17:50:01 CET