The files may be corrupted in different ways
-critical info like directory info, Tree header, etc overwritten ->File is unusable
-only some baskets are overwritten
When connecting a root file with
TFile f(“myfile.root”);
if you have the 1st type of error, ROOT will complain immediately
if you have the 2nd type, you will see the problem only when reading the branch buffers.
You can test the second case by doing
f.Map();
this will list all blocks in the file. if something goes wrong, the Mp function will tell you where.
Note that files may be corrupted just by copying files from one system to another or if your file system has a problem.
Rene