Logo ROOT   6.14/05
Reference Guide
RLazyDS.hxx
Go to the documentation of this file.
1 // Author: Enrico Guiraud, Danilo Piparo CERN 02/2018
2 
3 /*************************************************************************
4  * Copyright (C) 1995-2018, 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 
11 #ifndef ROOT_RLAZYDS
12 #define ROOT_RLAZYDS
13 
14 #include "ROOT/RLazyDSImpl.hxx"
15 #include "ROOT/RMakeUnique.hxx"
16 #include "ROOT/RDataFrame.hxx"
17 
18 namespace ROOT {
19 
20 namespace RDF {
21 
22 // clang-format off
23 ////////////////////////////////////////////////////////////////////////////////////////////////
24 /// \brief Factory method to create a Lazy RDataFrame.
25 /// \param[in] colNameProxyPairs the series of pairs to describe the columns of the data source, first element of the pair is the name of the column and the second is the RResultPtr to the column in the parent data frame.
26 // clang-format on
27 template <typename... ColumnTypes>
28 RDataFrame MakeLazyDataFrame(std::pair<std::string, RResultPtr<std::vector<ColumnTypes>>> &&... colNameProxyPairs)
29 {
30  RDataFrame tdf(std::make_unique<RLazyDS<ColumnTypes...>>(
31  std::forward<std::pair<std::string, RResultPtr<std::vector<ColumnTypes>>>>(colNameProxyPairs)...));
32  return tdf;
33 }
34 
35 } // ns RDF
36 
37 } // ns ROOT
38 
39 #endif
Smart pointer for the return type of actions.
Definition: RResultPtr.hxx:27
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
A RDataSource implementation which is built on top of result proxies.
Definition: RLazyDSImpl.hxx:41
ROOT&#39;s RDataFrame offers a high level interface for analyses of data stored in TTrees, CSV&#39;s and other data formats.
Definition: RDataFrame.hxx:42
void forward(const LAYERDATA &prevLayerData, LAYERDATA &currLayerData)
apply the weights (and functions) in forward direction of the DNN
Definition: NeuralNet.icc:544
RDataFrame MakeLazyDataFrame(std::pair< std::string, RResultPtr< std::vector< ColumnTypes >>> &&... colNameProxyPairs)
Factory method to create a Lazy RDataFrame.
Definition: RLazyDS.hxx:28