Re: How find a root file broken.

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 26 Apr 2006 18:01:12 +0200 (MEST)


Use a TChain like

   TChain ch("NameOfTree");
   ch.Add("xxx*.root",-1);

If a file in the list xxx*.root cannot be open, a message will be printed with the corresponding file name.

Rene Brun

On Wed, 26 Apr 2006, francesco
perfetto wrote:

> Hi All,
>
> I have over 300 root file of data, when I run my analysis program this after
> any time (any days) crash creating a core file...
> Now after some test, I believe that a root file is corrupted.
> Is there a easy way to see that file is corrupted (not opening them one by
> one)?
>
> P.S.: I use root 4.00/04 on red-hat machine
>
>
> Thanks in advance.
> Best regards
> Francesco.
Received on Wed Apr 26 2006 - 18:01:18 MEST

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