26 auto rd2 = rd1.Define(
"Root_def1",
"1").Filter(
"Root_def1 < 2",
"Main_Filter").Define(
"Root_def2",
"1");
28 auto branch1 = rd2.Define(
"Branch_1_def",
"1");
29 auto branch2 = rd2.Define(
"Branch_2_def",
"1");
32 .Define(
"Branch_1_1_def",
"1")
33 .Filter(
"1 == Branch_1_1_def % 2",
"Filter_1_1")
34 .Mean(
"Branch_1_1_def");
37 branch1.Define(
"Branch_1_2_def",
"1").Filter(
"Branch_1_2_def < 2",
"Filter_1_2").Count();
40 .Define(
"Branch_2_1_def",
"1")
41 .Define(
"Branch_2_2_def",
"1")
42 .Filter(
"1 == Branch_2_1_def % 2",
"Filter_2_1")
43 .Max(
"Branch_2_1_def");
52 gSystem->
Exec(
"dot -Tpng rdf_savegraph_tutorial.dot -o rdf_savegraph_tutorial.png");
#define R__LOAD_LIBRARY(LIBRARY)
R__EXTERN TSystem * gSystem
Smart pointer for the return type of actions.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
virtual Int_t Exec(const char *shellcmd)
Execute a command.
std::string SaveGraph(NodeType node)
Create a graphviz representation of the dataframe computation graph, return it as a string.