20 d.Define(
"b1", [&i]() {
return i; })
33 auto fileName =
"df007_snapshot.root";
44 auto d_cut =
d.Filter(
"b1 % 2 == 0");
47 auto d2 =
d_cut.Define(
"b1_square",
"b1 * b1")
51 for (
int i = 0; i < 3; i++)
68 std::cout <<
"These are the columns b1, b1_square and b2_vector:" << std::endl;
69 for (
auto branch : *t->GetListOfBranches()) {
70 std::cout <<
"Branch: " <<
branch->GetName() << std::endl;
82 std::cout <<
"These are all the columns available to this dataframe:" << std::endl;
83 for (
auto branch : *t->GetListOfBranches()) {
84 std::cout <<
"Branch: " <<
branch->GetName() << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.