Skip to content

Commit bbea6ce

Browse files
vepadulanodpiparo
authored andcommitted
[df] Remove code using old internal TTree
Since TTree is handled via RDataSource now, we can directly access the data source object in cling::printValue(ROOT::RDataFrame *).
1 parent f8dd61a commit bbea6ce

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tree/dataframe/src/RDataFrame.cxx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,23 +2041,10 @@ std::string printValue(ROOT::RDataFrame *df)
20412041
throw std::runtime_error("Cannot print information about this RDataFrame, "
20422042
"it was not properly created. It must be discarded.");
20432043
}
2044-
auto *tree = lm->GetTree();
20452044
auto defCols = lm->GetDefaultColumnNames();
20462045

20472046
std::ostringstream ret;
2048-
if (tree) {
2049-
ret << "A data frame built on top of the " << tree->GetName() << " dataset.";
2050-
if (!defCols.empty()) {
2051-
if (defCols.size() == 1)
2052-
ret << "\nDefault column: " << defCols[0];
2053-
else {
2054-
ret << "\nDefault columns:\n";
2055-
for (auto &&col : defCols) {
2056-
ret << " - " << col << "\n";
2057-
}
2058-
}
2059-
}
2060-
} else if (auto ds = df->GetDataSource()) {
2047+
if (auto ds = df->GetDataSource()) {
20612048
ret << "A data frame associated to the data source \"" << cling::printValue(ds) << "\"";
20622049
} else {
20632050
ret << "An empty data frame that will create " << lm->GetNEmptyEntries() << " entries\n";

0 commit comments

Comments
 (0)