svcClass and TChain::Add

From: Simone Bifani <simone.bifani_at_cern.ch>
Date: Tue, 9 Nov 2010 16:03:51 +0000


  Dear ROOTers,

which is the proper way to specify the svcClass of a CASTOR file when using a TChain::Add?

While I am able to set svcClass=lhcbuser when using TFile::Open

root [0] TFile *_file0 =
TFile::Open("root://castorlhcb.cern.ch//castor/cern.ch/grid/lhcb/user/s/simone/2010_11/12435/12435999/DVNtuples.root?svcClass=lhcbuser") root [1] _file0->ls()
TXNetFile**
root://castorlhcb.cern.ch//castor/cern.ch/grid/lhcb/user/s/simone/2010_11/12435/12435999/DVNtuples.root Gaudi Trees
  TXNetFile*
root://castorlhcb.cern.ch//castor/cern.ch/grid/lhcb/user/s/simone/2010_11/12435/12435999/DVNtuples.root Gaudi Trees

   KEY: TDirectoryFile   DecayTreeTuple;1        DecayTreeTuple
   KEY: TDirectoryFile   GetIntegratedLuminosity;1       
GetIntegratedLuminosity

I cannot do the following:

root [0] TChain *fChain = new TChain("DecayTreeTuple/DecayTree") root [1]
fChain->Add("root://castorlhcb.cern.ch//castor/cern.ch/grid/lhcb/user/s/simone/2010_11/12435/12435999/DVNtuples.root?svcClass=lhcbuser") (Int_t)0
root [2] fChain->Scan()
(Long64_t)0

Thanks,
s.

Received on Tue Nov 09 2010 - 17:03:57 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 09 2010 - 23:50:01 CET