Re: Fwd: svcClass and TChain::Add

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Wed, 10 Nov 2010 14:38:53 +0100


Hi Simone,

    I am investigating. Can I access the file in castor?

Cheers, Fons.

> -------- Original Message --------
> Subject: [ROOT] svcClass and TChain::Add
> Date: Tue, 9 Nov 2010 16:03:51 +0000
> From: Simone Bifani <simone.bifani_at_cern.ch>
> To: CERN ROOT Talk <roottalk_at_cern.ch>
>
>
>
> 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.
>
>
>

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://fons.rademakers.org           Fax:   +41 22 7669640
Received on Wed Nov 10 2010 - 14:38:56 CET

This archive was generated by hypermail 2.2.0 : Wed Nov 10 2010 - 17:50:01 CET