Re: TChain of bad files

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Fri, 24 Jun 2005 10:04:23 +0200 (MEST)


Hi Dmitry,

There are two kinds of "bad" files: recoverable or not recoverable. The recoverable files are typically files that have not been closed by the application, but the material written to this file is usable if the autoupdate mechanism of Trees had been used.

When you call TChain::Add(filename,nentries), you can specify nentries<=0 (see doc). In this case, a non recoverable file will not be added to the chain definition.
Currently the files that are recoverable are always recovered. One could add an option to not recover these files.

Rene brun

On Wed,
22 Jun 2005, Dmitry Naumov wrote:

> Dear ROOTers,
>
> is there a simple solution to the following problem:
> I have a list of root files which I chain together. Some of these
> files might be corrupted and I do not want to use root
> recovering mechanism for them - I better ignore these files.
> Is is possible to automatically disable (not connect to the chain) these
> bad files ?
>
> Thank you in advance,
> Dmitry
>
Received on Fri Jun 24 2005 - 10:04:28 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET