Re: Re: Problem with CloneTree

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 16 Sep 2011 12:04:29 +0200


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 - 12:04:38 CEST

This archive was generated by hypermail 2.2.0 : Sat Sep 17 2011 - 23:50:01 CEST