17def fill_tree(treeName, fileName):
19 df.Define(
"b1",
"(double) rdfentry_")\
20 .Define(
"b2",
"(int) rdfentry_ * rdfentry_").Snapshot(treeName, fileName)
23fileName =
'df004_cutFlowReport_py.root'
25fill_tree(treeName, fileName)
34filtered1 = d.Filter(
'b1 > 25',
'Cut1')
35filtered2 = d.Filter(
'0 == b2 % 2',
'Cut2')
37augmented1 = filtered2.Define(
'b3',
'b1 / b2')
38filtered3 = augmented1.Filter(
'b3 < .5',
'Cut3')
51allCutsReport = d.Report()
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...