Re: 'Unknown branch' error

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Sun Jun 21 1998 - 20:33:45 MEST


Laurent Aphecetche writes:
 > 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, the following check:

if (chain->GetBranch(branch_name)) {
  chain->SetBranchAddress(branch_name,address);
}

seems to be pretty much equivalent to intercepting the "bad" return. 

						Regards, Pasha.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET