25 RDataFrame = ROOT.ROOT.RDataFrame
29 hsimplePath = os.path.join(str(ROOT.gROOT.GetTutorialDir().Data()),
"hsimple.root")
30 df = RDataFrame(
"ntuple", hsimplePath)
33 df_cut = df.Filter(
"py > 0.f")\
34 .Define(
"px_plus_py",
"px + py")
38 df_cached = df_cut.Cache()
40 h = df_cached.Histo1D(
"px_plus_py")