Definition at line 52 of file RInterfaceBase.hxx.
Public Member Functions | |
RInterfaceBase (RDFDetail::RLoopManager &lm, const RDFInternal::RColumnRegister &colRegister) | |
RInterfaceBase (std::shared_ptr< RDFDetail::RLoopManager > lm) | |
RDFDescription | Describe () |
Return information about the dataframe. | |
ColumnNames_t | GetColumnNames () |
Returns the names of the available columns. | |
std::string | GetColumnType (std::string_view column) |
Return the type of a given column as a string. | |
ColumnNames_t | GetDefinedColumnNames () |
Returns the names of the defined columns. | |
unsigned int | GetNFiles () |
unsigned int | GetNRuns () const |
Gets the number of event loops run. | |
unsigned int | GetNSlots () const |
Gets the number of data processing slots. | |
RVariationsDescription | GetVariations () const |
Return a descriptor for the systematic variations registered in this branch of the computation graph. | |
bool | HasColumn (std::string_view columnName) |
Checks if a column is present in the dataset. | |
Protected Member Functions | |
void | AddDefaultColumns () |
template<typename... ColumnTypes> | |
void | CheckAndFillDSColumns (ColumnNames_t validCols, TTraits::TypeList< ColumnTypes... > typeList) |
void | CheckIMTDisabled (std::string_view callerName) |
template<typename ActionTag , typename... ColTypes, typename ActionResultType , typename RDFNode , typename HelperArgType = ActionResultType, std::enable_if_t< RDFInternal::RNeedJitting< ColTypes... >::value, int > = 0> | |
RResultPtr< ActionResultType > | CreateAction (const ColumnNames_t &columns, const std::shared_ptr< ActionResultType > &r, const std::shared_ptr< HelperArgType > &helperArg, const std::shared_ptr< RDFNode > &proxiedPtr, const int nColumns=-1) |
Create RAction object, return RResultPtr for the action Overload for the case in which one or more column types were not specified (RTTI + jitting). | |
template<typename ActionTag , typename... ColTypes, typename ActionResultType , typename RDFNode , typename HelperArgType = ActionResultType, std::enable_if_t<!RDFInternal::RNeedJitting< ColTypes... >::value, int > = 0> | |
RResultPtr< ActionResultType > | CreateAction (const ColumnNames_t &columns, const std::shared_ptr< ActionResultType > &r, const std::shared_ptr< HelperArgType > &helperArg, const std::shared_ptr< RDFNode > &proxiedPtr, const int=-1) |
Create RAction object, return RResultPtr for the action Overload for the case in which all column types were specified (no jitting). | |
std::string | DescribeDataset () const |
ColumnNames_t | GetColumnTypeNamesList (const ColumnNames_t &columnList) |
RDFDetail::RLoopManager * | GetLoopManager () const |
ColumnNames_t | GetValidatedColumnNames (const unsigned int nColumns, const ColumnNames_t &columns) |
template<typename RetType > | |
void | SanityChecksForVary (const std::vector< std::string > &colNames, const std::vector< std::string > &variationTags, std::string_view variationName) |
Protected Attributes | |
RDFInternal::RColumnRegister | fColRegister |
Contains the columns defined up to this node. | |
RDataSource * | fDataSource = nullptr |
Non-owning pointer to a data-source object. Null if no data-source. RLoopManager has ownership of the object. | |
std::shared_ptr< ROOT::Detail::RDF::RLoopManager > | fLoopManager |
< The RLoopManager at the root of this computation graph. Never null. | |
#include <ROOT/RDF/RInterfaceBase.hxx>
ROOT::RDF::RInterfaceBase::RInterfaceBase | ( | std::shared_ptr< RDFDetail::RLoopManager > | lm | ) |
Definition at line 121 of file RInterfaceBase.cxx.
ROOT::RDF::RInterfaceBase::RInterfaceBase | ( | RDFDetail::RLoopManager & | lm, |
const RDFInternal::RColumnRegister & | colRegister | ||
) |
Definition at line 127 of file RInterfaceBase.cxx.
|
protected |
Definition at line 421 of file RInterfaceBase.cxx.
|
inlineprotected |
Definition at line 136 of file RInterfaceBase.hxx.
|
protected |
Definition at line 412 of file RInterfaceBase.cxx.
|
inlineprotected |
Create RAction object, return RResultPtr for the action Overload for the case in which one or more column types were not specified (RTTI + jitting).
This overload has a nColumns
optional argument. If present, the number of required columns for this action is taken equal to nColumns, otherwise it is assumed to be sizeof...(ColTypes).
Definition at line 173 of file RInterfaceBase.hxx.
|
inlineprotected |
Create RAction object, return RResultPtr for the action Overload for the case in which all column types were specified (no jitting).
For most actions, r
and helperArg
will refer to the same object, because the only argument to forward to the action helper is the result value itself. We need the distinction for actions such as Snapshot or Cache, for which the constructor arguments of the action helper are different from the returned value.
Definition at line 150 of file RInterfaceBase.hxx.
ROOT::RDF::RDFDescription ROOT::RDF::RInterfaceBase::Describe | ( | ) |
Return information about the dataframe.
This convenience function describes the dataframe and combines the following information:
This is not an action nor a transformation, just a query to the RDataFrame object. The result is dependent on the node from which this method is called, e.g. the list of defined columns returned by GetDefinedColumnNames().
Please note that this is a convenience feature and the layout of the output can be subject to change and should be parsed via RDFDescription methods.
Definition at line 232 of file RInterfaceBase.cxx.
|
protected |
Definition at line 39 of file RInterfaceBase.cxx.
ROOT::RDF::ColumnNames_t ROOT::RDF::RInterfaceBase::GetColumnNames | ( | ) |
Returns the names of the available columns.
This is not an action nor a transformation, just a query to the RDataFrame object.
Definition at line 147 of file RInterfaceBase.cxx.
std::string ROOT::RDF::RInterfaceBase::GetColumnType | ( | std::string_view | column | ) |
Return the type of a given column as a string.
This is not an action nor a transformation, just a query to the RDataFrame object.
Definition at line 192 of file RInterfaceBase.cxx.
|
protected |
Definition at line 402 of file RInterfaceBase.cxx.
ROOT::RDF::ColumnNames_t ROOT::RDF::RInterfaceBase::GetDefinedColumnNames | ( | ) |
Returns the names of the defined columns.
This is not an action nor a transformation, just a simple utility to get the columns names that have been defined up to the node. If no column has been defined, e.g. on a root node, it returns an empty collection.
Definition at line 304 of file RInterfaceBase.cxx.
|
inlineprotected |
Definition at line 128 of file RInterfaceBase.hxx.
unsigned int ROOT::RDF::RInterfaceBase::GetNFiles | ( | ) |
Definition at line 27 of file RInterfaceBase.cxx.
unsigned int ROOT::RDF::RInterfaceBase::GetNRuns | ( | ) | const |
Gets the number of event loops run.
This method returns the number of events loops run so far by this RDataFrame instance.
Example usage:
Definition at line 397 of file RInterfaceBase.cxx.
unsigned int ROOT::RDF::RInterfaceBase::GetNSlots | ( | ) | const |
Gets the number of data processing slots.
This method returns the number of data processing slots used by this RDataFrame instance. This number is influenced by the global switch ROOT::EnableImplicitMT().
Example usage:
Definition at line 378 of file RInterfaceBase.cxx.
|
inlineprotected |
Definition at line 130 of file RInterfaceBase.hxx.
ROOT::RDF::RVariationsDescription ROOT::RDF::RInterfaceBase::GetVariations | ( | ) | const |
Return a descriptor for the systematic variations registered in this branch of the computation graph.
This is not an action nor a transformation, just a simple utility to inspect the systematic variations that have been registered with Vary() up to this node. When called on the root node, it returns an empty descriptor.
Definition at line 329 of file RInterfaceBase.cxx.
bool ROOT::RDF::RInterfaceBase::HasColumn | ( | std::string_view | columnName | ) |
Checks if a column is present in the dataset.
This method checks if a column is part of the input ROOT dataset, has been defined or can be provided by the data source.
Example usage:
Definition at line 348 of file RInterfaceBase.cxx.
|
inlineprotected |
Definition at line 71 of file RInterfaceBase.hxx.
|
protected |
Contains the columns defined up to this node.
Definition at line 60 of file RInterfaceBase.hxx.
|
protected |
Non-owning pointer to a data-source object. Null if no data-source. RLoopManager has ownership of the object.
Definition at line 57 of file RInterfaceBase.hxx.
|
protected |
< The RLoopManager at the root of this computation graph. Never null.
Definition at line 55 of file RInterfaceBase.hxx.