The TClonesArray has a more efficient memory management and it allows splitting with Trees. Note that Root version 4 supports also std::vector<T>. However only object-wise streaming is supported for std::vector. TClonesArray supports memberwise and object-wise streaming. memberwise streaming being far more efficient than objectwise streaming. Rene Brun Carlos Muņoz Camacho wrote: > > On Tue, 15 Jun 2004, Rene Brun wrote: > > >Why do you do? > > > > foo->Set(foo->iEv,foo->nMod); > > > >Remove this line and the script will work correctly. > > Sorry, it actually works even with ROOT 3.05/05 > > >The version 4 I/O subsystem supports variable length arrays of objects like > >arrays of basic types. > > That's great. In this case, what are the pros and cons of using a > TClonesArray of objects. What is more efficient ? > > Carlos
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET