TFile key recovery check


Is it possible to open a file, which attempts to recover keys, and check if
a key recovery was necessary?

I have problems with jobs, when my disk vault is used heavily, with files not closing properly. During analysis of these events my code seg-faults. There is nothing in the output to suggest a problem but keys are always recovered when I open the files so I want to use that as my check. Is there a way to find out if keys had to be recovered?



Hi Mark,

If you use version 4.00 you can do:
TFile f(“myfile.root”);
if (f.TestBit(TFile::kRecovered)) {
//file hasbeen recovered