377 tree->SetMakeClass(1);
379 std::unordered_map<std::string, TBranch*> branches;
381 TIter branchIter(
tree->GetListOfBranches());
382 TObject* obj =
nullptr;
383 while ((obj = branchIter()))
385 TBranch* branch =
nullptr;
386 if ((branch =
dynamic_cast<TBranch*
>(obj)))
388 branches.emplace(branch->GetName(), branch);
389 TIter subBranchIter(branch->GetListOfBranches());
390 while ((obj = subBranchIter()))
392 if (
auto subBranch =
dynamic_cast<TBranch*
>(obj))
393 branches.emplace(subBranch->GetName(), subBranch);
399 for (
const auto& [name, branch] : branches)
401 if (name.find(
"AuxDyn.") != std::string::npos ||
402 name.find(
"Aux.") != std::string::npos)
404 TClass* branchClass =
nullptr;
405 EDataType branchType{};
406 branch->GetExpectedType(branchClass, branchType);
407 if (branchClass ==
nullptr)
432 if (*branchClass->GetTypeInfo() ==
typeid(std::vector<float>))
435 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<char>))
438 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::int8_t>))
441 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::uint8_t>))
444 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::int16_t>))
447 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::uint16_t>))
450 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::int32_t>))
453 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::uint32_t>))
456 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::int64_t>))
459 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::uint64_t>))
462 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::vector<float>>))
465 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::vector<std::int32_t>>))
468 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::vector<std::uint64_t>>))
471 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::vector<std::vector<std::size_t>>>))
474 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::vector<std::vector<unsigned char>>>))
477 }
else if (*branchClass->GetTypeInfo() ==
typeid(std::vector<std::string>))