[ROOT] Root and RFIO, a suggestion for improvement

From: Jiri Masik (Jiri.Masik@cern.ch)
Date: Mon May 29 2000 - 02:01:51 MEST


Hello,

I finally managed to read root files via rfio. I find the
documentation(and also implementation) on this subject a bit
confusing. Namely I would expect that any file can be opened by TFile
constructor. It doesn't work as rfio:/pathname/file url seems to
be interpreted as a local file by TFile::TFile. The description how to
use an rfio file is given in the RFIOFile constructor in the reference
guide but in fact TFile::Open method should be used for this purpose.

I think the TFile constructor could integrate RFIO access
automatically as the staged file is represented by a broken link
->/shift/shd01/... on the local file system. One could try to interpret
the filename as an RFIO address if a broken link of this type is
encountered. The danger that one gets a distinct file than wishes is
minimal and could be eliminated if this behaviour is only activated
upon request. The win is that macros don't need to be changed when
switching from local files to rfio. What is your opinion?
cheers,
	Jiri



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET