135 if (!tree)
return nullptr;
138 return std::make_unique<TGo4ObjectAccess>(tree);
140 TObjArray *list = tree->GetListOfBranches();
141 const char *curname = name;
144 const char *slash = strchr(curname,
'/');
145 UInt_t len = slash ? slash - curname : strlen(curname);
147 TObject *obj =
nullptr;
148 while ((obj = iter()) !=
nullptr)
149 if ((strlen(obj->GetName()) == len) &&
150 (strncmp(obj->GetName(), curname, len) == 0))
break;
151 TBranch *br =
dynamic_cast<TBranch *
> (obj);
152 if (!br)
return nullptr;
155 list = br->GetListOfBranches();
158 return std::make_unique<TGo4BranchAccess>(br);