Re: [ROOT] how to check if file exist on castor?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 18 2002 - 17:42:15 MET


Hi Steven,

The recipee given by Fons works only with ROOT version 3.04

Rene Brun

On Wed, 18 Dec 2002, PASSMORE Steven wrote:

> 
> Hi Fons,
> 
> thanks for the swift answer, but unless I am doing something stupid it
> does not seem to work for me. Below is the check of two files on castor (one of
> them is yours - I took the liberty just to make the point that it exists)
> and the last is on my local disk, for which it works.
> 
> Cheers,
>    Steven
> 
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   3.03/09 18 September 2002   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> Compiled for solarisCC5.
> 
> CINT/ROOT C/C++ Interpreter version 5.15.56, Sep 4 2002
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] Long_t *id,*size,*flags,*mt;
> root [1]
> gSystem->GetPathInfo("rfio:/castor/cern.ch/user/p/passmore/atlfast_ntup-keypro=632-a.root",id,size,flags,mt)
> (int)1
> root [2]
> gSystem->GetPathInfo("rfio:/castor/cern.ch/user/r/rdm/dstarmb.root",id,size,flags,mt)
> (int)1
> root [3]
> gSystem->GetPathInfo("../data/atlfast_ntup-keypro=22.root",id,size,flags,mt)
> (int)0
> root [4]
> 
> 
> *****************************
>    Mark Steven Passmore
>    EP ATE, 594-R-022
>    CERN
>    CH - 1211 Geneva 23
>    Tel. 0041 22 767 3871
> *****************************
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:24 MET