[ROOT] un-closed TTree files

From: mark.winkler@philips.com
Date: Tue May 20 2003 - 15:43:43 MEST


Hello all, 

I am using root 3.05/02 with Geant4.4.1.p01.  In an exercise of poor 
judgement I hope not to repeat, I was running a simulation with many tens 
of millions of events and without saving my data in the interim.  The bad 
news is that a power loss occurred during a run; the good news is that the 
root file was in the process of being written.  When I viewed the file, 
root had to "recover" the file:

TFile f("simset75.root")
Warning in <TFile::Init>: file simset75.root probably not closed, trying 
to recover
Info in <TFile::Recover>: recovered key TList:StreamerInfo at address 
64132996
Info in <TFile::Recover>: recovered key TTree:CrystalTree at address 
897651719 
Warning in <TFile::Init>: successfully recovered 2 keys

I then view the file in a TBrowser, and all appears well.  I was hoping 
someone out there might be able to help me with these questions:  What did 
the recovery program do and are there any unexpected repercussions?  If i 
should run into this in the future, is there a permanent recovery 
function? or should I write a function to extract the data and write a new 
TTree (so it does not have to recover the file each time)?
Cheers!
Mark



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET