Hi Daniele,
try the following:
TFile *f1 =
TFile::Open("rfio:shift19:/shift/shift19/...path.../filename");
This will tell ROOT to use the TRFIOFile interface, which understands
the shift19:/... syntax.
Cheers, Fons.
On Mon, 2002-02-25 at 17:12, Daniele Cesini-OPAL-CMS wrote:
> Hi, I'm working in lxplus at cern and I'm trying to read files that are
> stored in shift machines.
> In my source code I use the line:
>
> TFile f1("shift19:/shift/shift19/...path.../filename");
>
> then I compile and link with the shift library using the following
> command:
>
> g++ -O filename.o
> -L/afs/cern.ch/na49/library.4/ROOT/pro/i386_redhat60/root/lib -lCore
> -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix
> -lPhysics -lm -ldl -lpthread -lshift -rdynamic -o outname
>
> I get no error message during linking but at esecution time the file
> cannot be found:
>
> Error in <TFile::TFile>: file shift19:/shift/shift19/..path../filename
> does not exist
>
> Typing the same commmand in the interactive root mode I get the same
> error, while using the rfdir command from shell I can see the file I have
> to read.
> I hope someone can help me. Thanks in advance,
>
> Daniele Cesini.
>
>
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET