Simple RDataFrame example in C++.
This tutorial shows a minimal example of RDataFrame. It starts without input data, generates a new column x with random numbers, and finally draws a histogram for x.
void df000_simple()
{
auto rdf_x = rdf.Define(
"x", [](){
return gRandom->Rndm(); });
auto h = rdf_x.Histo1D(
"x");
}
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
- Date
- September 2021
- Author
- Enric Tejedor (CERN)
Definition in file df000_simple.C.