Re: TNamed() without a name

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 13 Apr 2010 18:20:21 +0200


Hi,

I discussed with Fons, it's a pretty common issue. We could put the random string generator into TString. Could you suggest a function?

Cheers, Axel.

Fons Rademakers wrote on 04/13/2010 06:08 PM:
> Hi Thiemo,
>
> you could make some function like
>
> char *randomName(const char *base=0)
>
> and use that as argument the THn. To make is fancy with base you can say
> "pt-".
>
> Cheers, Fons.
>
>
> On 13/04/10 17:47, Thiemo Nagel wrote:

>> Dear rooters,
>>
>> when creating a series of histograms or profiles for display, it is
>> sometimes cumbersome to come up with unique (!) names for all of them.
>>
>> I've been wondering for some time whether there is a trick to not having
>> to specify a unique name upon instantiation of a class inheriting from
>> TNamed.
>>
>> Any ideas?
>>
>> Would you accept a patch that implements auto-naming with unique names,
>> a) if the specified name is empty or
>> b) if a well-defined "magic" name is used?
>>
>> Cheers!
>>
>> Thiemo
>>

>
Received on Tue Apr 13 2010 - 18:20:02 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 13 2010 - 23:50:02 CEST