Hi Daniele, I suppose that you want to access RFIO files. If yes, you should do: TFile *f1 = TFile::Open("rfio:/shift19:/shift/shift19/...path.../filename"); Rene Brun 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.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET