From 0bc57db70dbce35c06b65dff2d010a7c404bb901 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 4 Mar 2025 00:21:06 +0100 Subject: [PATCH] DPL: handle case of list as first field of the dataset --- Framework/AnalysisSupport/src/TTreePlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/AnalysisSupport/src/TTreePlugin.cxx b/Framework/AnalysisSupport/src/TTreePlugin.cxx index f36f309404699..f74fcda38d1f0 100644 --- a/Framework/AnalysisSupport/src/TTreePlugin.cxx +++ b/Framework/AnalysisSupport/src/TTreePlugin.cxx @@ -627,13 +627,13 @@ arrow::Result TTreeFileFormat::ScanBatchesAsync( throw runtime_error_f("Cannot find physical field associated to %s. Possible fields: %s", dataset_field->name().c_str(), physical_schema->ToString().c_str()); } - if (physicalFieldIdx > 1 && physical_schema->field(physicalFieldIdx - 1)->name().ends_with("_size")) { + if (physicalFieldIdx > 0 && physical_schema->field(physicalFieldIdx - 1)->name().ends_with("_size")) { O2_SIGNPOST_EVENT_EMIT(root_arrow_fs, tid, "Generator", "Field %{public}s has sizes in %{public}s.", dataset_field->name().c_str(), physical_schema->field(physicalFieldIdx - 1)->name().c_str()); mappings.push_back({physicalFieldIdx, physicalFieldIdx - 1, fi}); opsCount += 2; } else { - if (physicalFieldIdx > 1) { + if (physicalFieldIdx > 0) { O2_SIGNPOST_EVENT_EMIT(root_arrow_fs, tid, "Generator", "Field %{public}s previous field is %{public}s.", dataset_field->name().c_str(), physical_schema->field(physicalFieldIdx - 1)->name().c_str()); }