Re: Turn error on opening file using Process and TSelector in Fatal

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 17 Feb 2010 15:34:13 +0100


Hi Constantin,

Why don't you make a test when adding the file to the chain? in this case, you can take the appropriate action yourself and not include the file in the chain if the file does not exist, or timeout or any of the zillion possibilities that you can imagine.

Rene Brun

Constantin Loizides wrote:
> Dear all,
> is it possible to intercept failing open commands
> (in a TChain) when using a TSelector?
>
> In many cases the standard behavior of ROOT to skip and
> go on to the next file is ok, but there are cases where
> you really want to abort your analysis when the file
> could not be opened? (In the case I am talking about
> it is a file on castor that simply timed-out and was
> later accessible again, so opening all files beforehand
> is not fool proof).
>
> To me, the only (easy) way seems to overload the default
> error handler or set the gErrorAbortLevel = kError.
> But this would then treat all errors as fatal.
>
> Any ideas?
>
> Thanks,
> Constantin
>
Received on Wed Feb 17 2010 - 15:31:07 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 17 2010 - 17:50:01 CET