786class RCustomColumnBase;
805 : RInterface(
std::make_shared<
RDFDetail::RLoopManager>(nullptr, defaultBranches))
808 auto msg =
"Invalid TDirectory!";
809 throw std::runtime_error(msg);
811 const std::string treeNameInt(treeName);
812 auto tree =
static_cast<TTree *
>(dirPtr->
Get(treeNameInt.c_str()));
814 auto msg =
"Tree \"" + treeNameInt +
"\" cannot be found!";
815 throw std::runtime_error(msg);
817 GetProxiedPtr()->SetTree(std::shared_ptr<TTree>(
tree, [](
TTree *) {}));
833 const std::string treeNameInt(treeName);
834 const std::string filenameglobInt(filenameglob);
835 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
836 chain->Add(filenameglobInt.c_str());
853 std::string treeNameInt(treeName);
854 auto chain = std::make_shared<TChain>(treeNameInt.c_str());
855 for (
auto &
f : fileglobs)
856 chain->Add(
f.c_str());
907 auto *
tree = df.GetTree();
908 auto defBranches = df.GetDefaultColumnNames();
910 std::ostringstream ret;
912 ret <<
"A data frame built on top of the " <<
tree->GetName() <<
" dataset.";
913 if (!defBranches.empty()) {
914 if (defBranches.size() == 1)
915 ret <<
"\nDefault branch: " << defBranches[0];
917 ret <<
"\nDefault branches:\n";
918 for (
auto &&branch : defBranches) {
919 ret <<
" - " << branch <<
"\n";
924 ret <<
"A data frame associated to the data source \"" <<
cling::printValue(ds) <<
"\"";
926 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 object has a header with a name and a title.
Namespace for new ROOT classes and functions.
ROOT::Detail::RDF::ColumnNames_t ColumnNames_t
std::shared_ptr< const ColumnNames_t > ColumnNamesPtr_t
Print a TSeq at the prompt:
std::string printValue(const TDatime *val)
Print a TDatime at the prompt.
basic_string_view< char > string_view