18 #include "TIterator.h"
19 #include "TObjArray.h"
31 {
return fBranch->ClassName(); }
46 fIter = tree->GetListOfBranches()->MakeIterator();
54 fIter = branch->GetListOfBranches()->MakeIterator();
65 TObject* res =
fIter->Next();
66 if (res==0)
return kFALSE;
67 fCurrent =
dynamic_cast<TBranch*
> (res);
74 return fCurrent->GetListOfBranches()->GetEntries() > 0;
141 if (tree==0)
return 0;
145 TObjArray* list = tree->GetListOfBranches();
146 const char* curname = name;
149 const char* slash = strchr(curname,
'/');
150 UInt_t len = (slash!=0) ? slash - curname : strlen(curname);
153 while ((obj = iter())!=0)
154 if ((strlen(obj->GetName())==len) &&
155 (strncmp(obj->GetName(), curname, len)==0))
break;
156 TBranch* br =
dynamic_cast<TBranch*
> (obj);
160 list = br->GetListOfBranches();
static TGo4LevelIter * ProduceIter(TTree *tree)
virtual Int_t GetObjectKind()
TGo4TreeLevelIter(TTree *tree)
TGo4BranchAccess(TBranch *br)
virtual const char * GetObjectName() const
virtual const char * GetContainedClassName()
virtual const char * GetClassName()
virtual TGo4LevelIter * subiterator()
virtual const char * info()
virtual Bool_t isfolder()
static TGo4Access * CreateAccess(TTree *tree, const char *name)
virtual const char * GetObjectClassName() const
TGo4TreeLevelIter(TBranch *branch)
virtual const char * name()
virtual ~TGo4TreeLevelIter()