865using ROOT::Detail::RDF::ColumnNames_t;
880 : RInterface(std::make_shared<
RDFDetail::RLoopManager>(nullptr, defaultBranches))
883 auto msg =
"Invalid TDirectory!";
884 throw std::runtime_error(msg);
886 const std::string treeNameInt(treeName);
887 auto tree =
static_cast<TTree *
>(dirPtr->
Get(treeNameInt.c_str()));
889 auto msg =
"Tree \"" + treeNameInt +
"\" cannot be found!";
890 throw std::runtime_error(msg);
892 GetProxiedPtr()->SetTree(std::shared_ptr<TTree>(
tree, [](
TTree *) {}));
908 const std::string treeNameInt(treeName);
909 const std::string filenameglobInt(filenameglob);
910 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
911 chain->Add(filenameglobInt.c_str());
928 std::string treeNameInt(treeName);
929 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
930 for (
auto &
f : fileglobs)
931 chain->Add(
f.c_str());
982 auto *
tree = df.GetTree();
983 auto defBranches = df.GetDefaultColumnNames();
985 std::ostringstream ret;
987 ret <<
"A data frame built on top of the " <<
tree->GetName() <<
" dataset.";
988 if (!defBranches.empty()) {
989 if (defBranches.size() == 1)
990 ret <<
"\nDefault branch: " << defBranches[0];
992 ret <<
"\nDefault branches:\n";
993 for (
auto &&branch : defBranches) {
994 ret <<
" - " << branch <<
"\n";
999 ret <<
"A data frame associated to the data source \"" << cling::printValue(ds) <<
"\"";
1001 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.
basic_string_view< char > string_view
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