Re: Writing an 'array' of numbers into a root file

Valery Fine (fine@bnl.gov)
Fri, 13 Nov 1998 12:06:09 -0500


On 13 Nov 98 at 11:35, Rene Brun wrote:

> Sergey Avvakumov wrote:
> >
> > Hi everybody,
> >

. . .
> >
> > So my questions are - first, how to fix this program, eliminating
> > these memory errors, and second what is the 'best' way to have an
> > array of floats as a data member of the class, so that it's 'easy' to
> > write objects of this class into a root file?
> >

Hello Sergej, may be you will be inetesred in the method developed
at STAR to write out the arrays if any C-struture.

STAR C++/ROOT class library is present on


http://www.rhic.bnl.gov/STAR/html/comp_l/train/root/Star2C++tut.html

and I call you attention at St_Table class:

http://www.rhic.bnl.gov/STAR/html/comp_l/root/html/St_Table.html

Hope this gives some ideas.

With my best regards,
Valery
=================================================================
Dr. Valeri Faine (Fine)
------------------- Phone: +1 516 344 7806
Brookhaven National Laboratory FAX : +1 516 344 4206
Bldg. 510A /STAR mailto:fine@bnl.gov
Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine
USA

Dr. Valery Fine Telex : 911621 dubna su
-----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region Fax : +7 09621 6 51 45
Russia mailto:fine@main1.jinr.dubna.su