Skip to content

Commit 3858335

Browse files
committed
[RDF] Bring back a removed snapshot method
As discussed on the ROOT Users workshop, entirely removing interfaces after one single ROOT release leaves users with broken code without any hints on how to solve the problem. Instead, a minimal placeholder should remain, which gives directions on how to proceed. In that spirit, the templated snapshot overload is brought back and marked deprecated. This partly reverts commit 4da10a2.
1 parent 0033360 commit 3858335

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tree/dataframe/inc/ROOT/RDF/RInterface.hxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,15 @@ public:
12421242
return newInterface;
12431243
}
12441244

1245+
template <typename... ColumnTypes>
1246+
[[deprecated("Snapshot is not any more a template. You can safely remove the template parameters.")]]
1247+
RResultPtr<RInterface<RLoopManager>>
1248+
Snapshot(std::string_view treename, std::string_view filename, const ColumnNames_t &columnList,
1249+
const RSnapshotOptions &options = RSnapshotOptions())
1250+
{
1251+
return Snapshot(treename, filename, columnList, options);
1252+
}
1253+
12451254
////////////////////////////////////////////////////////////////////////////
12461255
/// \brief Save selected columns to disk, in a new TTree or RNTuple `treename` in file `filename`.
12471256
/// \param[in] treename The name of the output TTree or RNTuple.

0 commit comments

Comments
 (0)