16void fill_tree(
const char *treeName,
const char *fileName)
20 d.Define(
"b1", [&i]() {
return i++; }).Snapshot(treeName, fileName);
27 auto fileName =
"df011_ROOTDataSources.root";
28 auto treeName =
"myTree";
29 fill_tree(treeName, fileName);
35 auto h_s = d_s.Define(
"x",
"1./(b1 + 1.)").Histo1D({
"h_s",
"h_s", 128, 0, .6},
"x");
39 auto h =
d.Define(
"x",
"1./(b1 + 1.)").Histo1D({
"h",
"h", 128, 0, .6},
"x");
RDataSource defines an API that RDataFrame can use to read arbitrary data formats.
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...
RDataFrame MakeRootDataFrame(std::string_view treeName, std::string_view fileNameGlob)