Re: 'Unknown branch' error

Rene Brun (Rene.Brun@cern.ch)
Tue, 23 Jun 1998 15:31:32 +0200


Laurent Aphecetche wrote:
>
> Hi, all happy ROOTERS !
>
> Is it possible to intercept the 'Unknown branch' that one could get when
> doing a TChain::SetBranchAddress on a branch that does not exist
> (anymore) in a TTree ?

Hi Laurent,
When TChain::SetBranchAddress is called, the TChain object knows
only the list of connected files, but not the info about the
referenced TTree. Obviously, I could connect the first Tree
in the chain to get the list of branches, but this is not currently
implemented.

Rene Brun