19def fill_tree(treeName, fileName):
20 tdf = ROOT.ROOT.RDataFrame(10000)
21 tdf.Define(
"b1",
"(int) tdfentry_").Snapshot(treeName, fileName)
25fileName =
"df011_rootDataSource_py.root"
27fill_tree(treeName, fileName)
30MakeRootDataFrame = ROOT.ROOT.RDF.MakeRootDataFrame
37h = d.Define(
"x",
"1./(b1 + 1.)").Histo1D((
"h_s",
"h_s", 128, 0, .6),
"x")
RDataFrame MakeRootDataFrame(std::string_view treeName, std::string_view fileNameGlob)