1302 : RInterface(std::make_shared<
RDFDetail::RLoopManager>(nullptr, defaultBranches))
1305 auto msg =
"Invalid TDirectory!";
1306 throw std::runtime_error(msg);
1308 const std::string treeNameInt(treeName);
1309 auto tree =
static_cast<TTree *
>(dirPtr->
Get(treeNameInt.c_str()));
1311 auto msg =
"Tree \"" + treeNameInt +
"\" cannot be found!";
1312 throw std::runtime_error(msg);
1314 GetProxiedPtr()->SetTree(std::shared_ptr<TTree>(
tree, [](
TTree *) {}));
1329RDataFrame::RDataFrame(std::string_view treeName, std::string_view filenameglob,
const ColumnNames_t &defaultBranches)
1332 const std::string treeNameInt(treeName);
1333 const std::string filenameglobInt(filenameglob);
1334 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
1335 chain->Add(filenameglobInt.c_str());
1354 std::string treeNameInt(treeName);
1355 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
1356 for (
auto &
f : fileglobs)
1357 chain->Add(
f.c_str());
1413 auto *
tree = df.GetTree();
1414 auto defBranches = df.GetDefaultColumnNames();
1416 std::ostringstream ret;
1418 ret <<
"A data frame built on top of the " <<
tree->GetName() <<
" dataset.";
1419 if (!defBranches.empty()) {
1420 if (defBranches.size() == 1)
1421 ret <<
"\nDefault branch: " << defBranches[0];
1423 ret <<
"\nDefault branches:\n";
1424 for (
auto &&branch : defBranches) {
1425 ret <<
" - " << branch <<
"\n";
1430 ret <<
"A data frame associated to the data source \"" << cling::printValue(ds) <<
"\"";
1432 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 TTree,...
RDataFrame(std::string_view treeName, std::string_view filenameglob, const ColumnNames_t &defaultBranches={})
Build the dataframe.
ROOT::RDF::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