Error in <TFile::ReadBuffer>...root failde to read the file type data


I use ROOT interface to write the output of Geant4 into the Tree, when I terminate the Geant4 program , how can I save the data that has been wirtten in the buffer?

_ROOT Version: 6.06/06
_Platform: CentOS 7.9
Compiler: Not Provided


Hi @lc-leo,
I’m afraid that’s way too little information to be able to help you.
Can you share a short snippet of code that shows the problematic lines?
What error are you getting, what’s printed on screen?

Cheers,
Enrico