Df 0 2 1_Create T Graph

Fill a TGraph using RDataFrame.

Author: Enrico Guiraud, Danilo Piparo (CERN), Massimo Tumolo (Politecnico di Torino)
This notebook tutorial was automatically generated with ROOTBOOK-izer from the macro found in the ROOT repository on Thursday, June 24, 2021 at 07:16 AM.

In [1]:

ROOT::RDataFrame d(160);

Create a trivial parabola

In [2]:
auto dd = d.Alias("x", "rdfentry_").Define("y", "x*x");

auto graph = dd.Graph("x", "y");

This tutorial is ran with multithreading enabled. the order in which points are inserted is not known, so to have a meaningful representation points are sorted.

In [3]:
auto c = new TCanvas();

Draw all canvases

In [4]: