Logo ROOT  
Reference Guide
df021_createTGraph.C File Reference

Detailed Description

Fill a TGraph using RDataFrame.

View in nbviewer Open in SWAN

{
// Create a trivial parabola
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.
graph->Sort();
auto c = new TCanvas();
graph->DrawClone("APL");
}
Date
July 2018
Author
Enrico Guiraud, Danilo Piparo, Massimo Tumolo

Definition in file df021_createTGraph.C.

c
#define c(i)
Definition: RSha256.hxx:119
ROOT::RDataFrame
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...
Definition: RDataFrame.hxx:42
ROOT::EnableImplicitMT
void EnableImplicitMT(UInt_t numthreads=0)
Enable ROOT's implicit multi-threading for all objects and methods that provide an internal paralleli...
Definition: TROOT.cxx:523
df021_createTGraph
Definition: df021_createTGraph.py:1
TCanvas
Definition: TCanvas.h:23
graph
Definition: graph.py:1
d
#define d(i)
Definition: RSha256.hxx:120