16 #ifndef ROOT_TDATAFRAME 17 #define ROOT_TDATAFRAME 34 namespace Experimental {
61 auto *
tree = df->GetTree();
62 auto defBranches = df->GetDefaultColumnNames();
64 std::ostringstream ret;
66 ret <<
"A data frame built on top of the " <<
tree->GetName() <<
" dataset.";
67 if (!defBranches.empty()) {
68 if (defBranches.size() == 1)
69 ret <<
"\nDefault branch: " << defBranches[0];
71 ret <<
"\nDefault branches:\n";
72 for (
auto &&branch : defBranches) {
73 ret <<
" - " << branch <<
"\n";
78 ret <<
"A data frame that will create " << df->GetNEmptyEntries() <<
" entries\n";
85 #endif // ROOT_TDATAFRAME TDataFrame(std::string_view treeName, std::string_view filenameglob, const ColumnNames_t &defaultBranches={})
Build the dataframe.
basic_string_view< char > string_view
Namespace for new ROOT classes and functions.
TDFDetail::ColumnNames_t ColumnNames_t
TDataSource defines an API that TDataFrame can use to read arbitrary data formats.
std::shared_ptr< TLoopManager > GetDataFrameChecked()
Get the TLoopManager if reachable. If not, throw.
std::string printValue(ROOT::Experimental::TDataFrame *tdf)
Describe directory structure in memory.
unsigned long long ULong64_t
Print a TSeq at the prompt:
ROOT type_traits extensions.
Key/value store of objects.
ROOT's TDataFrame offers a high level interface for analyses of data stored in TTrees.
A TTree object has a header with a name and a title.
The public interface to the TDataFrame federation of classes.