Hi Gero, In case of arrays, both forms are equivalent in C++ Rene On Mon, 17 Nov 2003, Gero Flucke wrote: > Hi! > Reading in the user's guide, p. 202 (chapter 12: Trees, 'Adding a branch > to hold a list of variables') I wonder whether it is really meant that > arrays of variable length have to be treated quite different from fixed > length arrays: > > The examples are: > > Float_t f[10]; > tree->Branch("Branch", &f, "f[10]/F"); > // ^^^ > > and > > Int_t nPhot; > Float_t E[500]; > > tree->Branch("nPhot", &nPhot, "nPhot/I"); > tree->Branch("E", E, "E[nPhot]/F"); > // ^^^ > > So in the one case the address of the array/pointer has to be given and in > the other case the array/pointer itself? > > Is that correct or a typo? > > Cheers > > Gero > > ----------------------------------------------------------------------- > Gero Flucke > 1a / 603 > DESY > Notkestr. 85 > 22607 Hamburg > +49-(0)40-8998-2454 >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET