You should use
http://root.cern.ch/root/htmldoc/TFile.html#TFile:Open
method to access the "rfio" files
----
Best regards
Valeri
> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch] On
> Behalf Of Carmen Iglesias
> Sent: Monday, June 28, 2004 11:35 AM
> To: roottalk@cern.ch
> Subject: [ROOT] linked ntuples in ROOT
>
> Hi,
> I try to work in a ntuple linked to another in CASTOR, but when I run
> ROOT, it tell me that:
> Error in <TFile::TFile>: file ../ROOT-file/ntuple/pim5h_ela0.root does
not exist
> Error in <TROOT::cd>: Unknown directory CBNT
> Error in <TFile::TFile>: file ntuple.root does not exist
>
> I have put in the file.C:
> TFile *f = new TFile("../ROOT-file/ntuple/pim5h_ela0.root");
> TTree *t = (TTree *) gDirectory->Get("CBNT/t3333");
> Analisis * aa = new Analisis(t);
> aa->Histo();
>
> I'm only managed to work with it, if I copy the ntuple to my directory
> from CASTOR with rfcp.
>
> But these kind of ntuples are very large and I prefer work with it
from
> CASTOR.
> How I can do it?
>
> Cheers,
>
> Carmen.
>
>
> --
> ***************************************************************
> Carmen Iglesias Escudero
> INSTITUTO DE FÍSICA CORPUSCULAR (IFIC)
> Universidad de Valencia - CSIC
>
> EDIFICIO INSTITUTOS DE INVESTIGACION _/ _/_/_/_/ _/
_/_/_/_/
> Poligono la Coma S/N _/ _/ _/ _/
> PATERNA - VALENCIA (SPAIN) _/ _/ _/ _/
> PHONE: 963543723 FAX: 963543742 _/ _/_/_/ _/ _/
> _/ _/ _/ _/
> Mail: UV-IFIC Apdo:22085, 46071 Valencia _/ _/ _/ _/_/_/_/
>
> EMAIL: iglesias@ific.uv.es
> Carmen.Iglesias@cern.ch
> WWW: http://ific.uv.es/~iglesias/
>
************************************************************************
*
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET