From 33c6ccb5f8c59c118ec87b26857dadb31edaf09e Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Fri, 2 May 2025 12:40:26 +0200 Subject: [PATCH] DPL: fix reading of booleans from branches with more than 2 baskets. --- Framework/AnalysisSupport/src/TTreePlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/AnalysisSupport/src/TTreePlugin.cxx b/Framework/AnalysisSupport/src/TTreePlugin.cxx index 90b862e5fc8d1..28fd713112c94 100644 --- a/Framework/AnalysisSupport/src/TTreePlugin.cxx +++ b/Framework/AnalysisSupport/src/TTreePlugin.cxx @@ -208,7 +208,7 @@ auto readBoolValues = [](uint8_t* target, ReadOps& op, TBufferFile& rootBuffer) memset(target, 0, op.targetBuffer->size()); int readLast = 0; while (readEntries < op.rootBranchEntries) { - auto beginValue = readLast; + auto beginValue = readEntries; readLast = op.branch->GetBulkRead().GetBulkEntries(readEntries, rootBuffer); int size = readLast * op.listSize; readEntries += readLast;