Basic SaveGraph usage.
This tutorial shows how to use the SaveGraph action. SaveGraph inspects the sequence of RDataFrame actions.
import ROOT
.Filter("Root_def1 < 2", "Main_Filter") \
.Define("Root_def2", "1")
.Define("Branch_1_1_def", "1") \
.Filter("1 == Branch_1_1_def % 2", "Filter_1_1") \
.Mean("Branch_1_1_def");
.Filter("Branch_1_2_def < 2", "Filter_1_2") \
.Count()
.Define("Branch_2_1_def", "1") \
.Define("Branch_2_2_def", "1") \
.Filter("1 == Branch_2_1_def % 2", "Filter_2_1") \
.Max("Branch_2_1_def")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
digraph {
8 [label="Mean", style="filled", fillcolor="#e47c7e", shape="box"];
6 [label="Filter_1_1", style="filled", fillcolor="#0f9d58", shape="hexagon"];
7 [label="Define\nBranch_1_1_def", style="filled", fillcolor="#4285f4", shape="ellipse"];
3 [label="Filter_1", style="filled", fillcolor="#0f9d58", shape="hexagon"];
4 [label="Define\nBranch_1_def", style="filled", fillcolor="#4285f4", shape="ellipse"];
5 [label="Define\nRoot_def2", style="filled", fillcolor="#4285f4", shape="ellipse"];
1 [label="Main_Filter", style="filled", fillcolor="#0f9d58", shape="hexagon"];
2 [label="Define\nRoot_def1", style="filled", fillcolor="#4285f4", shape="ellipse"];
0 [label="Empty source\nEntries: 2", style="filled", fillcolor="#f4b400", shape="ellipse"];
6 -> 8;
7 -> 6;
3 -> 7;
4 -> 3;
5 -> 4;
1 -> 5;
2 -> 1;
0 -> 2;
}
- Date
- January 2022
- Author
- Ivan Kabadzhov (CERN)
Definition in file df034_SaveGraph.py.