Re: [ROOT] Writing Matrix to TTree

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Apr 30 2004 - 12:57:22 MEST


Hi Alessio,

Yes, this is possible. See example in $ROOTSYS/test/Event.h

Rene Brun

Alessio Sarti wrote:
> 
> Hi all,
> I'm trying to understand if it is possible, in root, to write a matrix to
> a Tree.
> Let's say: I have a matrix filled per event and I'd like to have it dumped
> in the Tree via the Fill method.
> This is because the matrix has lots of variables that have similar meaning
> and having them packed up in a per event matrix would save a lot of
> variables copy-paste and would enlarge the flexibility of the code.
> So, instead of
> 
> Int_t ADC1[100];
> Int_t ADC2[100];
> ..............
> Int_t ADC100[100];
> 
> I'd like to have
> Int_t ADC[100][100];
> 
> Is that possible?
> thanks,
> alessio
> 
> ______________________________________________________
> Alessio Sarti     INFN Frascati
> 
> >>>I'm in Frascati<<<
> 
> Cell   +39-06-94038166
> Office +39-06-94032776
> Fax    +39-06-94032427
> 
> "... e a un Dio 'fatti il culo' non credere mai..."
> (F. De Andre')
> 
> "He was turning over in his mind an intresting new concept in
> Thau-dimensional physics which unified time, space, magnetism, gravity
> and, for some reason, broccoli".  (T. Pratchett: "Pyramids")



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