Dear ROOT Team, I either have an error or I found a bug (root version 3.01.05 ), probably the first. I have a class that contains a TChain which is read from a file. The TChain contains 7 branches. When I try to set the status of the branche "ECPB", root returns with: Error in <TTree::SetBranchStatus>: unknown branch -> ECPB A more direct approach: root [15] TChain *ch = ea->fEventChain ; root [16] TTree *t= ch->GetTree() root [17] t->SetBranchStatus("ECPB",0) Error in <TTree::SetBranchStatus>: unknown branch -> ECPB HOWEVER: root [20] TObjArray *list=t->GetListOfBranches() root [21] TBranch *b=list->At(0); root [22] b=(TBranch *)list->At(2); root [23] cout << "[" << b->GetName() << "]\n"; [ECPB] So as far as I can tell, "ECPB" is defined in the tree. There seems to be something strange at the end of the name since root [31] t->SetBranchStatus("ECPB*",1) seems to work. BUT, root [24] t->GetBranch("ECPB")->TestBit(1024) (const unsigned char)0 Could someone please help me set and unset TBranches? Cheers, Maurik See also: http://root.cern.ch/root/roottalk/roottalk00/3180.html
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET