15def fill_tree(treeName, fileName):
17 df.Define(
"b1",
"(double) rdfentry_")\
18 .Define(
"b2",
"(int) rdfentry_ * rdfentry_").Snapshot(treeName, fileName)
21fileName =
'df004_cutFlowReport_py.root'
23fill_tree(treeName, fileName)
32filtered1 = d.Filter(
'b1 > 25',
'Cut1')
33filtered2 = d.Filter(
'0 == b2 % 2',
'Cut2')
35augmented1 = filtered2.Define(
'b3',
'b1 / b2')
36filtered3 = augmented1.Filter(
'b3 < .5',
'Cut3')
49allCutsReport = d.Report()
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...