Skip to content

Commit

Permalink
ATO-525 - bug fix for ROOT6 - makeCacheTree - have to check upper bound
Browse files Browse the repository at this point in the history
in case above upper bound -statistic get lost
  • Loading branch information
miranov25 committed Mar 22, 2021
1 parent 4975200 commit 57c74b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STAT/AliTreePlayer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ void AliTreePlayer::MakeCacheTreeChunk(TTree * tree, TString varList, TString ou
for (Int_t iEntry=firstEntry; iEntry<nEntries; iEntry+=chunkSize) {
::Info("Processing chunk","%d",iEntry);
if (estimate < chunkSize) tree->SetEstimate(chunkSize);
if (chunkSize+iEntry>entriesAll) chunkSize=entriesAll-iEntry; // ROOT6 does not handle properly query above limt
if (chunkSize+iEntry>=entriesAll) chunkSize=entriesAll-iEntry; // ROOT6 does not handle properly query above limit
Int_t entries = tree->Draw(varList.Data(), selection, "goffpara", chunkSize, iEntry);
if (entries<=0) break;
if (entries > estimate) {
Expand Down

0 comments on commit 57c74b3

Please sign in to comment.