Re: Are there any flags for recoverable and not recoverable files?

From: Rene Brun <>
Date: Thu, 12 Jan 2006 12:59:02 +0100 (MET)


   TFile *f = TFile::Open("myfile.root");    if (!f || f->IsZombie()) printf("file is irrecoverable\n");

Rene Brun

On Wed, 11 Jan 2006, Jiangyong Jia

> Dear Rene,
> For a typical analysis, I produce several thousand root files. But many of
> the root files are not properly closed when job are crashed. I would like
> to know is there a way in root to identify which root file is not
> properly closed? Does TFile class has a method telling me whether the root
> file is closed, if not, whether it is recovable? This will allow me to
> delete the not closed file with a simple root macro.
> Thanks,
> Jiangyong
Received on Thu Jan 12 2006 - 12:59:10 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:56 MET