27 auto hsimplePath = gROOT->GetTutorialDir();
28 hsimplePath +=
"/hsimple.root";
29 ROOT::RDataFrame df(
"ntuple", hsimplePath.Data());
32 auto df_cut = df.Filter([](
float py) {
return py > 0.f; }, {
"py"})
33 .Define(
"px_plus_py", [](
float px,
float py) {
return px + py; }, {
"px",
"py"});
39 auto df_cached = df_cut.Cache<float,
float>({
"px_plus_py",
"py"});
40 auto df_cached_implicit = df_cut.Cache();
41 auto h = df_cached_implicit.Histo1D<
float>(
"px_plus_py");