TChain for castor

Dear all,

sorry if a similiar question has already been posted here before.
I’ve got several files in castor I’d like to add in a chain for the further processing. For this I’m doing the following:

from ROOT import TFile, TTree, TChain
ch = TChain("TreeDirectory/TreeName")
ch.Add("castor://castorlhcb.cern.ch:9002//castor/cern.ch/...")
ch.ls()
ch.GetEntries()

0L

One more way I tried was:

fil=TFile.Open("castor://castorlhcb.cern.ch:9002//castor/cern.ch/...")
ch.GetListOfFiles().Add(fil)
ch.ls()

TCastorFile**castor:castorlhcb.cern.ch:9002//castor/cern.ch/...
 TCastorFile*castor:castorlhcb.cern.ch:9002//castor/cern.ch/...
  KEY: TDirectoryFile   TreeDirectory;1       TreeDirectory

ch.GetEntries()

0L

It seems that there’s something inside, but the number of events is still zero…
I tried with “castor://” and “rfio://” prefixes, and never it returned any error, just nothing is added. Probably “root” prefix could be the right one, but it hangs up the python…
Or may be I’m doing something totally stupid?
Could you, please, help? Will appreciate any hints![/code]

Hi,

what does ‘hang up’ mean? I.e. could you e.g. attach gdb and hit ^C to see where it hangs?

Thanks,
Wim