I did a TTreeIndex to ordinate the entries in a TTree, but when I call GetEntry using the order in the TTreeIndex the macro is very slow (it process about 500 event every 4 seconds)
It is possible to make it faster or the problem is that I should order the TTree when I fill it?
here there is the part of the code
for(Long64_t i = 0; i < index->GetN() - 1 ; i++ ) {
gSystem->ProcessEvents();
Long64_t local = myTree->LoadTree( index->GetIndex()[i] );
myTree->GetEntry(local);
I noticed that is the call myTree->GetEntry(local) that slow down everything so much
cheers
Antonio
It seems that reading TTree not sequentially (i.e., using TTreeIndex) leads to decompression issue…
This post solves the slow TTree random access problem: