15 unsigned long long y = 1;
20 auto d = df.Define(
"y", [&
y]() {
return y *= 100; })
23 return std::vector<int>({
x++,
x++,
x++,
x++});
25 .
Define(
"w", [&
w]() {
return w *= 1.8; })
28 return std::vector<std::vector<double>>({{z, ++z}, {z, ++z}, {z, ++z}});
32 auto d1 =
d.Display(
"");
34 auto d2 =
d.Display({
"x",
"y"});
37 std::cout <<
"The following is the representation of all columns with the default nr of entries" << std::endl;
39 std::cout <<
"\n\nThe following is the representation of two columns with the default nr of entries" << std::endl;
RInterface< Proxied, DS_t > Define(std::string_view name, F expression, const ColumnNames_t &columns={})
Define a new column.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void w
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...