1011 : RInterface(std::make_shared<
RDFDetail::RLoopManager>(nullptr, defaultBranches))
1014 auto msg =
"Invalid TDirectory!";
1015 throw std::runtime_error(msg);
1017 const std::string treeNameInt(treeName);
1018 auto tree =
static_cast<TTree *
>(dirPtr->
Get(treeNameInt.c_str()));
1020 auto msg =
"Tree \"" + treeNameInt +
"\" cannot be found!";
1021 throw std::runtime_error(msg);
1023 GetProxiedPtr()->SetTree(std::shared_ptr<TTree>(
tree, [](
TTree *) {}));
1036RDataFrame::RDataFrame(std::string_view treeName, std::string_view filenameglob,
const ColumnNames_t &defaultBranches)
1039 const std::string treeNameInt(treeName);
1040 const std::string filenameglobInt(filenameglob);
1041 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
1042 chain->Add(filenameglobInt.c_str());
1059 std::string treeNameInt(treeName);
1060 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
1061 for (
auto &
f : fileglobs)
1062 chain->Add(
f.c_str());
1113 auto *
tree = df.GetTree();
1114 auto defBranches = df.GetDefaultColumnNames();
1116 std::ostringstream ret;
1118 ret <<
"A data frame built on top of the " <<
tree->GetName() <<
" dataset.";
1119 if (!defBranches.empty()) {
1120 if (defBranches.size() == 1)
1121 ret <<
"\nDefault branch: " << defBranches[0];
1123 ret <<
"\nDefault branches:\n";
1124 for (
auto &&branch : defBranches) {
1125 ret <<
" - " << branch <<
"\n";
1130 ret <<
"A data frame associated to the data source \"" << cling::printValue(ds) <<
"\"";
1132 ret <<
"An empty data frame that will create " << df.GetNEmptyEntries() <<
" entries\n";
unsigned long long ULong64_t
The head node of a RDF computation graph.
RLoopManager * GetLoopManager() const
RDataSource * fDataSource
Non-owning pointer to a data-source object. Null if no data-source. RLoopManager has ownership of the...
const std::shared_ptr< RDFDetail::RLoopManager > & GetProxiedPtr() const
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...
RDataFrame(std::string_view treeName, std::string_view filenameglob, const ColumnNames_t &defaultBranches={})
Build the dataframe.
RDFDetail::ColumnNames_t ColumnNames_t
Describe directory structure in memory.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
A TTree represents a columnar dataset.
std::vector< std::string > ColumnNames_t
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
std::shared_ptr< const ColumnNames_t > ColumnNamesPtr_t