Fill a TGraph using RDataFrame.
import ROOT
ROOT.ROOT.EnableImplicitMT(2)
dd = d.Alias("x", "rdfentry_").Define("y", "x*x")
graph = dd.Graph("x", "y")
c = ROOT.TCanvas()
graph.Sort()
graph.Draw("APL")
c.SaveAs("df021_createTGraph.png")
print("Saved figure to df021_createTGraph.png")
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
- Date
- July 2018
- Authors
- Enrico Guiraud, Danilo Piparo (CERN), Massimo Tumolo (Politecnico di Torino)
Definition in file df021_createTGraph.py.