Re: [ROOT] ROOT file creation

From: Reiner Rohlfs (Reiner.Rohlfs@obs.unige.ch)
Date: Fri Feb 22 2002 - 12:18:48 MET


On 22-Feb-02 at 06:57, Marian M. Liliac (liliac@isc.kyushu-u.ac.jp) wrote:
> Hi ROOTers,
> 
> I just discovered ROOT (thanks to Jonathan) and I wander how can I use it
> in my code.  The product of my code is always a big 2D array of data that
> need a color mapping representation (fields of Temp. or Concentrations) Can
> someone give me an input how can I format my data in a file to feed ROOT ? 
Thank you !
> 
> wish you a happy day,
> Marian

Hi Marian,

I'm just developing an image display class for ROOT. These functions are
foreseen to pass your data to this class:

void SetImage(TArrayD & imageData, UInt_t width, TImagePalette * palette =
NULL);

void SetImage(Double_t * imageData, UInt_t width, UInt_t height, TImagePalette
* palette = NULL);

You see, your data should be either an array of Double_t or a TArrayD.
You also can define a palette for your color representation of your data.

I hope to have a first version next month.

Cheers Reiner.



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