So I have been getting these R__unzip: error in inflate (zlib) errors, when I run large files. And according to a previous post in this forum, I should be disabling the cache. I am using root_v5.16.00
I guess I have some confusion as to where I should exactly put the SetCacheSize(0) command. I am doing something like this and it is still not helping:-
TFile *sIGnal;
sIGnal = new TFile (filname,“RECREATE”);
TTree *tree;
tree = new TTree(“MtreeVar”,“Mtuple tree Variables, Physics”);
tree->SetCacheSize(0);
tree->SetDirectory(sIGnal);
MontrealLoc *stkphy = new MontrealLoc;
tree->SetCacheSize(0);
tree->Branch(“PhysVariables”,&stkphy);
It fails with the error -
R__unzip: error in inflate (zlib)
Error in TBasket::ReadBasketBuffers: fNbytes = 126894, fKeylen = 70, fObjlen = 528643, noutot = 0, nout=0, nin=126824, nbuf=528643
Error in TBranchElement::GetBasket: File:
So, I switched my root version to root_v5.20.00 (that’s the latest available yet here). And I run on a 64 bit machine. The runs that used to run fine in v5.16, now throws this error -
And the previous error message still persists. Note not all events had that previous problem of R__unzip: error in inflate (zlib) errors. The events that had that problem, still show that same problem.
Additionally, everytime a tree is filled I get the new TBufferFile::CheckByteCount error.
The code is rather complicated as it involves several classes, so is hard to post here. I was wondering if you had an idea as to why this error is showing? Do you think it will go away with v-5.24? In your earlier replies to other people I saw that this error should not show up in v-5.18, so I thought v-5.20 was good enough…