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
>
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers_at_cern.ch Phone: +41 22 7679248 WWW: http://fons.rademakers.org Fax: +41 22 7669640Received on Tue Apr 13 2010 - 18:08:33 CEST
This archive was generated by hypermail 2.2.0 : Tue Apr 13 2010 - 23:50:02 CEST