784class RCustomColumnBase;
803 : RInterface(std::make_shared<
RDFDetail::RLoopManager>(nullptr, defaultBranches))
806 auto msg =
"Invalid TDirectory!";
807 throw std::runtime_error(msg);
809 const std::string treeNameInt(treeName);
810 auto tree =
static_cast<TTree *
>(dirPtr->
Get(treeNameInt.c_str()));
812 auto msg =
"Tree \"" + treeNameInt +
"\" cannot be found!";
813 throw std::runtime_error(msg);
815 GetProxiedPtr()->SetTree(std::shared_ptr<TTree>(
tree, [](
TTree *) {}));
831 const std::string treeNameInt(treeName);
832 const std::string filenameglobInt(filenameglob);
833 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
834 chain->Add(filenameglobInt.c_str());
851 std::string treeNameInt(treeName);
852 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
853 for (
auto &
f : fileglobs)
854 chain->Add(
f.c_str());
905 auto *
tree = df.GetTree();
906 auto defBranches = df.GetDefaultColumnNames();
908 std::ostringstream ret;
910 ret <<
"A data frame built on top of the " <<
tree->GetName() <<
" dataset.";
911 if (!defBranches.empty()) {
912 if (defBranches.size() == 1)
913 ret <<
"\nDefault branch: " << defBranches[0];
915 ret <<
"\nDefault branches:\n";
916 for (
auto &&branch : defBranches) {
917 ret <<
" - " << branch <<
"\n";
922 ret <<
"A data frame associated to the data source \"" << cling::printValue(ds) <<
"\"";
924 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
Namespace for new ROOT classes and functions.
ROOT::Detail::RDF::ColumnNames_t ColumnNames_t
std::shared_ptr< const ColumnNames_t > ColumnNamesPtr_t