[ROOT] GetUserInfo() for an array of Float_t

From: Jonathan Eisch (jonathan.d.eisch@uwrf.edu)
Date: Thu Sep 16 2004 - 22:32:32 MEST


Hi,

I'm rather new to ROOT, so please bear with me.

I'm using ROOT 4.00/08 and I'm trying to build a tree with waveforms.  
I have one branch that is an array of type Float_t for the time and 
another for the voltage.  The time array is constant for each branch, 
so I'd like to be able to be able to tell root that it's always 
constant and to only store it once (it takes up much more space than 
the mostly zero filled voltage array.  I've tried:

Float_t time[10000]; // holds the point times
treename->GetUserInfo()->Add(time);
waves1.Branch("chx_time",&time,"chx_time[numpoints]/F");

but I know that my use of GetUserInfo() is incorrect, and I can't find 
much for documentation/examples of it's use.

-Jonathan



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET