Re: [ROOT] TChain

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Feb 27 2002 - 13:10:39 MET


Hi Gernot,

The new version of TChain makes one single pass over the files.
By default TChain::Add does not connect the file.
The files in the TChain are only connected when required.
If your first call to the chain is GetEntries(), this function will read
all the headers from the files to compute the total number of entries.

Are you using code generated by an old version of TTree::MakeClass ?
If yes, could you generate the code with the current version?

Could you replace your lines:
  chain.Add(filename);
by
  chain.Add(filename,-1); 

Could you give more details when it crashes. A gdb traceback is welcome.

Rene Brun


Gernot Maier wrote:
> 
> Hej,
> 
> I just downloaded the new version 3.03/02 for glibc 2.1 and gcc2.95.2 ( Linux ).
> 
> With this version I get a seg fault while using chain of 80 files and about 90Mio.
> events using TChain->GetEntries. This doesn't occur with version 3.02/07.
> 
> Can anybody give a hint where to search or what I have to change? I saw several changes
> in the release notes, but don't know their impact.
> 
> Unfortunately I failed preparing a small example.
> 
> thanks,
> 
> Gernot
> 
> -----
> Gernot Maier                    KASCADE Collaboration
> Institut fuer Kernphysik        Tel. +49 (0) 7247 82-4174
> Forschungszentrum Karlsruhe     gernot.maier@ik.fzk.de



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:43 MET