Re: array dimension

From: Rene BRUN <>
Date: Fri, 04 Feb 2005 09:07:57 +0100

Hi Claus,

Because a branch may have more than one leaf, you must access the leaf. For instance using $ROOTSYS/test/Event.h with

    Int_t          fNvertex;
    UInt_t         fFlag;
    Double32_t     fTemperature;
    Int_t          fMeasures[10];
    Double32_t     fMatrix[4][4];

    Double32_t *fClosestDistance; //[fNvertex]

showing fix size arrays and variable length array (fClosestDistance), you can get the current size of the corresponding leaf with


Rene Brun

Claus Horn wrote:
> Dear ROOTers,
> I have the following question:
> Given a pointer to a TBranch,
> to a branch which holds an array
> (e.g. of float)
> how can I get to know the dimension
> of this array ?
> cherrs,
> Claus
Received on Fri Feb 04 2005 - 09:08:02 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET