Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
df021_createTGraph.C File Reference

Detailed Description

View in nbviewer Open in SWAN
Fill a TGraph using RDataFrame.

{
// 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");
}
#define d(i)
Definition RSha256.hxx:102
#define c(i)
Definition RSha256.hxx:101
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
The Canvas class.
Definition TCanvas.h:23
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:539
Definition graph.py:1
Date
July 2018
Authors
Enrico Guiraud, Danilo Piparo (CERN), Massimo Tumolo (Politecnico di Torino)

Definition in file df021_createTGraph.C.