Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RInterface.cxx
Go to the documentation of this file.
1// Author: Vincenzo Eduardo Padulano, Axel Naumann, Enrico Guiraud CERN 02/2023
2
3/*************************************************************************
4 * Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
12
14 std::pair<ULong64_t, ULong64_t> &&newRange)
15{
16 R__ASSERT(newRange.second >= newRange.first && "end is less than begin in the passed entry range!");
17 node.GetLoopManager()->SetEmptyEntryRange(std::move(newRange));
18}
19
20/**
21 * \brief Changes the input dataset specification of an RDataFrame.
22 *
23 * \param node Any node of the computation graph.
24 * \param spec The new specification.
25 */
27{
28 node.GetLoopManager()->ChangeSpec(std::move(spec));
29}
30
31/**
32 * \brief Trigger the execution of an RDataFrame computation graph.
33 * \param[in] node A node of the computation graph (not a result).
34 *
35 * This function calls the RLoopManager::Run method on the \p fLoopManager data
36 * member of the input argument. It is intended for internal use only.
37 */
39{
40 node.fLoopManager->Run();
41}
#define R__ASSERT(e)
Definition TError.h:118
void SetEmptyEntryRange(std::pair< ULong64_t, ULong64_t > &&newRange)
void ChangeSpec(ROOT::RDF::Experimental::RDatasetSpec &&spec)
Changes the internal TTree held by the RLoopManager.
The dataset specification for RDataFrame.
std::shared_ptr< ROOT::Detail::RDF::RLoopManager > fLoopManager
< The RLoopManager at the root of this computation graph. Never null.
RDFDetail::RLoopManager * GetLoopManager() const
The public interface to the RDataFrame federation of classes.
void ChangeEmptyEntryRange(const ROOT::RDF::RNode &node, std::pair< ULong64_t, ULong64_t > &&newRange)
void ChangeSpec(const ROOT::RDF::RNode &node, ROOT::RDF::Experimental::RDatasetSpec &&spec)
Changes the input dataset specification of an RDataFrame.
void TriggerRun(ROOT::RDF::RNode node)
Trigger the execution of an RDataFrame computation graph.