From 3d8c8bee2b6f49c54727e786289a26f3a0ed3b38 Mon Sep 17 00:00:00 2001 From: Enrico Guiraud <enrico.guiraud@cern.ch> Date: Thu, 15 Apr 2021 12:37:25 +0200 Subject: [PATCH] [DF] Prefer UncheckedAt since we are sure the element exists --- tree/dataframe/src/RLoopManager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/dataframe/src/RLoopManager.cxx b/tree/dataframe/src/RLoopManager.cxx index 1d4edda7466..78570517e69 100644 --- a/tree/dataframe/src/RLoopManager.cxx +++ b/tree/dataframe/src/RLoopManager.cxx @@ -150,7 +150,7 @@ static void GetBranchNamesImpl(TTree &t, std::set<std::string> &bNamesReg, Colum // Leaf list auto listOfLeaves = branch->GetListOfLeaves(); if (listOfLeaves->GetEntries() == 1) { - auto leaf = static_cast<TLeaf *>(listOfLeaves->At(0)); + auto leaf = static_cast<TLeaf *>(listOfLeaves->UncheckedAt(0)); const auto leafName = std::string(leaf->GetName()); if (leafName == branchName) { UpdateList(bNamesReg, bNames, branchName, friendName, foundLeaves, leaf, allowDuplicates); -- GitLab