25 TFile f(
"tdf009_FromScratchVSTTree_classic.root",
"RECREATE");
26 TTree t(
"treeName",
"treeName");
31 for (
int i = 0; i < 10; ++i) {
57 tdf.Define(
"b1", [&
b]() {
return b++; })
58 .Define(
"b2",
"(int) b1 * b1")
59 .Snapshot(
"treeName",
"tdf009_FromScratchVSTTree_tdf.root");
62 void tdf009_FromScratchVSTTree()
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
ROOT's TDataFrame offers a high level interface for analyses of data stored in TTrees.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
A TTree object has a header with a name and a title.