# Error in ReadBasketBuffers & Gaps with Map()

**URL:** <https://root-forum.cern.ch/t/error-in-readbasketbuffers-gaps-with-map/10226>\
**Category:** ROOT\
**Created:** [May 25, 2010, 8:54am UTC](https://root-forum.cern.ch/t/error-in-readbasketbuffers-gaps-with-map/10226 "2010-05-25T08:54:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tellim](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/f475e1/32.png) [@tellim](https://root-forum.cern.ch/u/tellim)\
**Post date:** [May 25, 2010, 8:54am UTC](https://root-forum.cern.ch/t/error-in-readbasketbuffers-gaps-with-map/10226/1 "2010-05-25T08:54:26Z")

</div>

Hi,  
I am using Root 5.26.00a and I want to loop over a list of root-trees which i copied from castor to my local machine.  
While looping over all Events in my root-trees i get error messages similar to the following:

“R\_\_unzip: error -3 in inflate (zlib)  
Error in TBasket::ReadBasketBuffers: fNbytes = 2093, fKeylen = 90, fObjlen = 31744, noutot = 0, nout=0, nin=2003, nbuf=31744  
Error in TBranch::GetBasket: File: /user/data\_336/treeQCDemPt30to80\_7TeV\_43.root at byte:169607373, branch:algoL1Bit, entry:359227, badread=0, nerrors=1, basketnumber=1  
…  
R\_\_unzip: error -3 in inflate (zlib)  
Error in TBasket::ReadBasketBuffers: fNbytes = 2093, fKeylen = 90, fObjlen = 31744, noutot = 0, nout=0, nin=2003, nbuf=31744  
file probably overwritten: stopping reporting error messages  
Error in TBranch::GetBasket: File: /user/data\_336/treeQCDemPt30to80\_7TeV\_43.root at byte:169607373, branch:algoL1Bit, entry:359227, badread=0, nerrors=1, basketnumber=10  
…  
”

The error messages occurs to different files each run.  
From other topics in this forum I know that the reason could be corrupted root-files. I tried to exchange the files with error messages but the error still remains.  
Refering to [/viewtopic.php?p=38863](http://root.cern.ch/phpBB3//viewtopic.php?p=38863) I tried to load one of the files as TFile and to run Map() on it. The resulting output has some “gaps” in it:

“  
…  
20100319/030310 At:32590093 N=444 TBasket CX = 71.70  
20100319/030326 At:32590537 N=410 TBasket CX = 77.64  
20100319/030342 At:32590947 N=426 TBasket CX = 74.73  
Address = 32591373 Nbytes = -16 =====G A P===========  
20100319/002248 At:32591389 N=4053 StreamerInfo CX = 3.20  
20100319/002254 At:32595442 N=470 TBasket CX = 67.73  
20100319/002254 At:32595912 N=1938 TBasket CX = 16.43  
…  
20100319/105738 At:130183662 N=462 TBasket CX = 68.90  
20100319/133836 At:130184124 N=170 TBasket CX = 73.50  
Address = 130184294 Nbytes = -14 =====G A P===========  
20100319/081957 At:130184308 N=27508 TBasket CX = 1.08  
20100319/081957 At:130211816 N=26371 TBasket CX = 1.13  
”

Could those gaps be the origin of my error messages? Where do those gaps come from? Is there a way to fix them?

Thanks.

---

_[View the full topic](https://root-forum.cern.ch/t/error-in-readbasketbuffers-gaps-with-map/10226)._
