Re: Re: Problem with CloneTree

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 16 Sep 2011 13:22:03 +0200


Could you send your .h and .C file and post your data file in some public area?
Philippe will look at your problem.

Rene

On 16/09/2011 12:49, perfetto_at_na.infn.it wrote:
> Yes, I have this statement:
>
> ...
> for (Long64_t jentry=0; jentry<nentries;jentry++) {
> Long64_t ientry = LoadTree(jentry);
> if (ientry< 0) break;
> nb = fChain->GetEntry(jentry); nbytes += nb;
> // if (Cut(ientry)< 0) continue;
> ...
> I have add my code in .C file created by MakeClass() (within Loop
> function) without deleting anything.
> Now if I put 0 in CloneTree I have right entries in all variable (those
> new I created and in those of tree I want copy) but old ones are empty
> (mean =0, RMS = 0).
> If don't put 0 in CloneTree I have the double of entries (47520 respect
> right value 23760)
>
> Francesco.
>
>
>> well, I was assuming that in
>>
>> for (Long64_t jentry=0; jentry<nentries;jentry++) {
>> ...
>>
>> you had a statement to read your original tree. Do something like
>>
>> for (Long64_t jentry=0; jentry<nentries;jentry++) {
>> fChain->GetEntry(jentry); //<====================
>> ...
>>
>> Rene
>>
>>
>> 16/09/2011 11:47, perfetto_at_na.infn.it wrote:
>>> Hi Rene,
>>>
>>> thanks for your help and reply; but now I have the new variable with
>>> right
>>> entries and shape, but those of old tree are all to zero.
>>> I would like also to have the variables of the tree I have copied.
>>> Is it possible ?
>>>
>>> Thamks again
>>> for (Long64_t jentry=0; jentry<nentries;jentry++) {
>>> ...
>>> for (Long64_t jentry=0; jentry<nentries;jentry++) {
>>>>> ...
>>>>>
>>
>
Received on Fri Sep 16 2011 - 13:22:14 CEST

This archive was generated by hypermail 2.2.0 : Fri Sep 16 2011 - 23:50:01 CEST