Re: How to get the banch status?
Rene Brun (Rene.Brun@cern.ch)
Tue, 01 Dec 1998 11:12:34 +0100
Ludger Janauschek wrote:
>
> Hello!
>
> after looking in TTree::SetBranchStatus, I would try to get the
> branch status with
>
> tree->GetBranch("branchname")->TestBit(kDoNotProcess)
>
> But kDoNotProcess is not defined in a header file,
> but in src/TREE_Branch.cxx.
>
> What is the recommended way to check the branch status?
>
Hi Ludger,
I have moved the definition of kDoNotProcess and kIsClone
from the implementation file to the header of TBranch.
Here is the definition of kDoNotProcess
const Int_t kDoNotProcess = BIT(10); // Active bit for branches
where BIT is a macro defined in RTypes.h
#define BIT(n) (1 << (n))
Rene Brun