HEP-KBFI / TallinnNtupleProducer

code, python scripts and config files for producing "plain" Tallinn Ntuples
3 stars 2 forks source link

Error in <TBranch::TBranch::WriteBasketImpl>: basket's WriteBuffer failed. #2

Closed veelken closed 2 years ago

veelken commented 2 years ago

The execution of produceNtuple.cc fails with Error in : basket's WriteBuffer failed. after processing a few hundred events.

The problem got solved by replacing TTree outputTree = new TTree("Events", "Events"); by TTree outputTree = fs.make("Events", "Events"); in produceNtuple.cc.

My best guess is that the problem occurs when the baskets of the outputTree fill and the outputTree is not "attached" to a ROOT file into which the information can be written to empty the baskets.

I opened this issue to have a reference of this problem and I am closing this issue now, since the problem is solved with the commit https://github.com/HEP-KBFI/TallinnNtupleProducer/commit/b1dc5585cf88fd36fdef233abcc204a3a85b8a81