Thanks,
I was so focused on castor that I thought that was the problem.
Sorry,
Massimiliano
Il giorno 16-ago-2010, alle ore 11.33, Rene Brun ha scritto:
> Use TChain::Add and not TChain::add
>
> Rene Brun
>
> Massimiliano Chiorboli wrote:
>> Dear experts,
>> I'm trying to read some files on castor from a macro.
>> I have:
>>
>> TChain *fChain = new TChain("HltTree");
>> fChain->add("/castor/cern.ch/user/c/chiorbo/OpenHlt_Spring10/LM0/openhlt_100_1_ios.root");
>> fChain->add("/castor/cern.ch/user/c/chiorbo/OpenHlt_Spring10/LM0/openhlt_101_1_LuY.root");
>>
>>
>> I tried also:
>>
>> fChain->add("rfio:/castor/cern.ch/user/c/chiorbo/OpenHlt_Spring10/LM0/openhlt_100_1_ios.root");
>>
>> and
>>
>> fChain->add("rfio:///castor/cern.ch/user/c/chiorbo/OpenHlt_Spring10/LM0/openhlt_100_1_ios.root");
>>
>>
>> I always get:
>>
>> Error: Can't call TChain::add("/castor/cern.ch/user/c/chiorbo/OpenHlt_Spring10/LM0/openhlt_100_1_ios.root") in current scope BaseHltTree.h:1689:
>> Possible candidates are...
>> (in TChain)
>> (in TTree)
>> *** Interpreter error recovered ***
>>
>> What is wrong in what I do?
>>
>> I'm using root 5.22/00d with all the environments set as for the cms software (command cmsenv under a cmssw project).
>>
>> Thanks,
>> Massimiliano
>>
>
Received on Mon Aug 16 2010 - 11:56:19 CEST