Re: [ROOT] Loading branches for quick selections

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jun 05 2003 - 18:38:46 MEST


Hi Peter,

Unfortunately, you do not indicate which version of ROOT you are using.
It is likely that you use an old version. We fixed a problem a few 
months ago when loading a new file in a chain. The branch addresses were 
not always  recomputed.
Please move to version 3.05/05 in case you use an older version.

Rene Brun

On 
Thu, 5 Jun 2003, Peter H Fisher wrote:

> Hi Rooter,
> 
> I have having some trouble with branches.  I'm using a Loop function
> generated by MakeClassand in the selection, I have:
> 
> for(jentry=0;...)
> {
>   Int_t ientry=LoadTree(jentry);
>   b_npart->GetEntry(jentry);
>   if(npart!=1) quickcut=-1;
> .
> .
> }
> 
> npart is the only leaf of the branch b_npart.  This works fine through the
> first file in the chain, but sticks on the last value of the first file
> thereafter.  Is there something I need to do to take care of the changing
> files in the chain?
> 
> Peter
> 
> 
> Peter Fisher                                   Office 617-253-8561
> Professor of Physics                           Fax    617-253-4100
> 44-118 MIT	                               email  fisherp@mit.edu
> Cambridge, MA, 02139
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET