Error when accessing the root file


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.26.06
Platform: Cedar compute Canada cluster
Compiler: gcc


Hi Everyone,

I get an error while trying to access a phase space in root format for my Monte Carlo simulation with Geant4 on one of the computecanada clusters, cedar. Here is the mentioned error:

Error in TBasket::Streamer: The value of fNbytes is incorrect (-1638279933) ; trying to recover by setting it to zero

Does anyone have any idea how to solve this issue?

Thank you,

-A

Dear @azinbeigi ,

There are a couple of already answered posts on the forum that might be relevant for your problem (for example here and here).

The error you report in general can mean that either the file was not properly written to disk or if you are reading it from a remote storage facility that something went wrong in the remote read.

Maybe @pcanal has more insights, but I encourage you to take a look at the posts mentioned above and search for similar ones here on the forum.
Cheers,
Vincenzo