> Hi Jochen, > > you should try to open such files with TRFIOFile instead of TFile! > > Regards, > Horst Thanks. I tried it with: root [0] gSystem->Load("libRFIO"); root [1] TRFIOFile f1 = TRFIOFile("rfio:/castor/cern.ch/user/s/schieck/mc2790_1_111.root"); Error in <TRFIOFile::TRFIOFile>: file /castor/cern.ch/user/s/schieck/mc2790_1_111.root does not exist and still I cannot see the files in CASTOR directly. If I try to access the root file via the link with root [2] TRFIOFile f1 = TRFIOFile("rfio:link.root"); and start the viewer root [3] TTree *ntuple1 = f1.Get("h10"); root [4] ntuple1->StartViewer(); I get again a crash. It still doesn't work. Jochen > > Jochen Schieck wrote: > > > > Hello, > > > > we are trying to acces root files in CASTOR with > > > > TFile *f1 = > > TFile::Open("rfio:/castor/cern.ch/user/s/schieck/mc2790_1_111.root"); > > > > and the system complains with: > > > > Error in <TRFIOFile::TRFIOFile>: file > > /castor/cern.ch/user/s/schieck/mc2790_1_111.root does not exist > > > > But the file exists as you can see: > > > > [lxplus044] ~ > rfstat /castor/cern.ch/user/s/schieck/mc2790_1_111.root > > Device : 0 > > Inode number : 4236991 > > Protection : -rw-r--r-- (100644) > > Hard Links : 1 > > Uid : 19235 (schieck) > > Gid : 1135 (ws) > > Size (bytes) : 126547074 > > Last access : Thu Nov 29 12:15:50 2001 > > Last modify : Thu Nov 29 12:00:40 2001 > > Last stat. mod. : Thu Nov 29 12:00:40 2001 > > > > We tried a similar thing in PAW with opening a hbook file in CASTOR and it > > actually worked! > > > > We managed to access the file with manual stagein -M and using a symbolic > > link. However, if we try to access a tree within the root file via > > > > TFile *f = TFile::Open("rfio:link.root"); > > TTree *ntuple = f.Get("h10"); > > ntuple->StartViewer(); > > > > and try to plot a variable in a TBranch ROOT crashes. > > > > We use root ver 3.01 from afs > > > > ROOTSYS=/afs/cern.ch/na49/library.4/ROOT/new/i386_redhat60/root > > LD_LIBRARY_PATH=/afs/cern.ch/na49/library.4/ROOT/new/i386_redhat60/root/lib/ > > > > on lxplus. > > > > Thanks for any help > > > > Jochen > > > > ---------------------------------------------------------------------- > > Jochen Schieck > > EMAIL: schieck@mppmu.mpg.de > > Max-Planck-Institut fuer Physik (Werner-Heisenberg-Institut) > > Tel: +49 89 323 54 352 > > +49 179 54 72 113 > > Fax: +49 89 322 67 04 > > Foehringer Ring 6 / Room 245 > > 80805 Muenchen > > ---------------------------------------------------------------------- > > -- > ----------------------------------------------------------------- > Dr. Horst Goeringer email: H.Goeringer@gsi.de > GSI Computing Center Tel: +49-6159-71-2553 > Planckstr. 1 Fax: +49-6159-71-2986 > D-64291 Darmstadt, Germany > ----------------------------------------------------------------- >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:10 MET