This tutorial illustrates how use the RDataFrame in combination with a RDataSource.
In this case we use a TTrivialDS, which is nothing more than a simple generator: it does not interface to any existing dataset. The TTrivialDS has a single column, col0, which has value n for entry n.
{
auto nEvents = 128U;
auto h_s = d_s.Define("x", "1./(1. + col0)").Histo1D({"h_s", "h_s", 128, 0, .6}, "x");
return i++;
};
auto h =
d.Define(
"col0",
g).Define(
"x",
"1./(1. + col0)").Histo1D({
"h",
"h", 128, 0, .6},
"x");
c_s->SetLogy();
h_s->DrawClone();
return 0;
}
unsigned long long ULong64_t
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...
RInterface< RDFDetail::RLoopManager, RTrivialDS > MakeTrivialDataFrame(ULong64_t size, bool skipEvenEntries=false)
- Date
- September 2017
- Author
- Danilo Piparo
Definition in file df010_trivialDataSource.C.