18 #include "TIterator.h"
30 {
return fBranch->ClassName(); }
45 fIter = tree->GetListOfBranches()->MakeIterator();
53 fIter = branch->GetListOfBranches()->MakeIterator();
64 TObject* res =
fIter->Next();
65 if (res==0)
return kFALSE;
66 fCurrent =
dynamic_cast<TBranch*
> (res);
73 return fCurrent->GetListOfBranches()->GetEntries() > 0;
140 if (tree==0)
return 0;
144 TObjArray* list = tree->GetListOfBranches();
145 const char* curname = name;
148 const char* slash = strchr(curname,
'/');
149 UInt_t len = (slash!=0) ? slash - curname : strlen(curname);
152 while ((obj = iter())!=0)
153 if ((strlen(obj->GetName())==len) &&
154 (strncmp(obj->GetName(), curname, len)==0))
break;
155 TBranch* br =
dynamic_cast<TBranch*
> (obj);
159 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()