-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[df] Move
FromRNTuple
to separate header
For snapshotting RNTuples, we need to include the header file for RNTupleDS in `ActionHelpers.hxx`. To avoid dependency conflicts related to including `ROOT/RDataFrame.hxx`, we move the free `FromRNTuple` functions to a separate header.
- Loading branch information
Showing
5 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/// \file RNTupleDSHelpers.hxx | ||
/// \ingroup NTuple ROOT7 | ||
/// \author Florine de Geus <florine.de.geus@cern.ch> | ||
/// \date 2024-06-04 | ||
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback | ||
/// is welcome! | ||
|
||
/************************************************************************* | ||
* Copyright (C) 1995-2024, Rene Brun and Fons Rademakers. * | ||
* All rights reserved. * | ||
* * | ||
* For the licensing terms see $ROOTSYS/LICENSE. * | ||
* For the list of contributors see $ROOTSYS/README/CREDITS. * | ||
*************************************************************************/ | ||
|
||
#ifndef ROOT_RNTupleDSHelpers | ||
#define ROOT_RNTupleDSHelpers | ||
|
||
#include <ROOT/RDataFrame.hxx> | ||
#include <ROOT/RNTupleDS.hxx> | ||
|
||
namespace ROOT { | ||
namespace RDF { | ||
namespace Experimental { | ||
//////////////////////////////////////////////////////////////////////////////// | ||
/// \brief Create an RDataFrame from an RNTuple. | ||
/// | ||
/// \param[in] ntupleName The ntuple name | ||
/// \param[in] fileName The file name | ||
/// | ||
/// \return An RDataFrame based on the provided RNTuple | ||
/// | ||
/// \note It is possible to create RNTuple-based dataframes with the standard RDataFrame constructor! | ||
/// | ||
ROOT::RDataFrame FromRNTuple(std::string_view ntupleName, std::string_view fileName); | ||
ROOT::RDataFrame FromRNTuple(std::string_view ntupleName, const std::vector<std::string> &fileNames); | ||
ROOT::RDataFrame FromRNTuple(ROOT::Experimental::RNTuple *ntuple); | ||
} // namespace Experimental | ||
} // namespace RDF | ||
} // namespace ROOT | ||
|
||
#endif // ROOT_RNTupleDSHelpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters