27 TFile f(
"df009_FromScratchVSTTree_classic.root",
"RECREATE");
28 TTree t(
"treeName",
"treeName");
33 for (
int i = 0; i < 10; ++i) {
59 df.Define(
"b1", [&
b]() {
return b++; })
60 .Define(
"b2",
"(int) b1 * b1")
61 .Snapshot(
"treeName",
"df009_FromScratchVSTTree_df.root");
64void df009_FromScratchVSTTree()
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TTree represents a columnar dataset.