From 7391025c7f1ed9f3c92f042b33d3cdef4d97c5d7 Mon Sep 17 00:00:00 2001 From: Vincenzo Eduardo Padulano Date: Tue, 7 Jul 2026 17:46:31 +0200 Subject: [PATCH] [df] Doc fix: add required argument to Define --- tree/dataframe/src/RDataFrame.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/dataframe/src/RDataFrame.cxx b/tree/dataframe/src/RDataFrame.cxx index 257b7c1cbb024..ee6758cdc4f7d 100644 --- a/tree/dataframe/src/RDataFrame.cxx +++ b/tree/dataframe/src/RDataFrame.cxx @@ -522,7 +522,7 @@ For example, to fill a histogram with the "pt" of selected particles for each ev ~~~{.cpp} // h is filled with all the elements of `good_pts`, for each event -auto h = df.Define("good_pts", [](const ROOT::RVecF &pt) { return pt[pt > 0]; }) +auto h = df.Define("good_pts", [](const ROOT::RVecF &pt) { return pt[pt > 0]; }, {"pt"}) .Histo1D("good_pts"); ~~~