Re: [ROOT] Problem with TObject

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri Aug 23 2002 - 17:31:04 MEST


Just cut and paste TObjNum from $ROOTSYS/test/tcollex.cxx and change the
int by double. It is not by default available in ROOT yet.

Cheers, Fons.


On Wed, 2002-08-21 at 11:57, Elin Lundström wrote:
> Hello
> I am a beginner in both programming C++ and root.
> I would like to create a TMap with a string as the key
> and a double as the value. I have succeeded in
> creating the the key as a TObjString but I haven't
> found the corresponding TObject holding a double.
> Can I use TObjNum for a double as well as an integer?
> I have already tried to create a TObjNum holding an
> integer but I haven't succeeded. Do I have to include 
> some special library for that?
> 
> Thanks
> /Elin 
> 
> _____________________________________________________
> Gratis e-mail resten av livet på www.yahoo.se/mail
> Busenkelt!
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET