18 def fill_tree(treeName, fileName):
19 tdf = ROOT.ROOT.RDataFrame(10000)
20 tdf.Define(
"b1",
"(int) tdfentry_").Snapshot(treeName, fileName)
24 fileName =
"df011_rootDataSource_py.root" 26 fill_tree(treeName, fileName)
29 MakeRootDataFrame = ROOT.ROOT.RDF.MakeRootDataFrame
36 h = 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)