Re: [ROOT] TTree::BuildIndex takes more than 17min for 100 events

From: Ingo Strauch (strauch@toots.physik.rwth-aachen.de)
Date: Mon Nov 20 2000 - 17:36:31 MET


Hi Rene!

> Could you make this test outside of your object destructor ?
> If the symptom persists, please send me your root file.

The trees are created inside the object, if I return a pointer to the tree and
call BuildIndex before the destructor, the problem stays.

Maybe I should explain more of the structure:

The program reads FPACK files, runs some fortran functions via wrappers and
fills C++ classes that go to a micro ODS and a tag database.

1) A H1Event object is created, parameters are the filenames of MODS and HAT
2) The object creates two trees and assigns them to the files
3) A H1MODS and a H1HAT object are created, each getting the respective tree
as
   parameter
4) H1MODS and H1HAT add different branches to their trees
5) In each event H1Event fills some internal structures and then calls the
TTree::Fill
   methods
6) At the end, when the destructor of H1Event gets called, the index is build,
then
   the files are written and closed

It's quite complicated but in general all code of our OO project is avialable
via CVS. But there is a lot of site specific stuff involved.

I could try to write the tree without index and build it afterwards...

Cheers, Ingo



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET