Logo ROOT  
Reference Guide
ROOT::Internal::RDF Namespace Reference

Namespaces

namespace  GraphDrawing
 

Classes

class  ArrayPtrVisitor
 
class  DisplayHelper
 
struct  IsDataContainer
 Check for container traits. More...
 
struct  IsDataContainer< ROOT::VecOps::RVec< bool > >
 
struct  IsDataContainer< std::span< T > >
 
struct  IsDataContainer< std::vector< bool > >
 
struct  IsVector_t
 Detect whether a type is an instantiation of vector<T,A> More...
 
struct  IsVector_t< std::vector< T, A > >
 
class  PassAsVecHelper
 
class  PassAsVecHelper< std::index_sequence< N... >, T, F >
 
class  RAction
 A RDataFrame node that produces a result. More...
 
class  RActionBase
 
class  RBookedDefines
 Encapsulates the columns defined by the user. More...
 
class  RCallback
 
struct  RColumnReadersInfo
 This type aggregates some of the arguments passed to InitColumnReaders. More...
 
class  RDefineReader
 Column reader for defined (aka custom) columns. More...
 
class  RDisplayElement
 Helper class to let Display print compact tabular representations of the events. More...
 
class  RDSColumnReader
 Column reader type that deals with values read from RDataSources. More...
 
struct  RemoveFirstParameterIf
 type is TypeList if MustRemove is false, otherwise it is a TypeList with the first type removed More...
 
struct  RemoveFirstParameterIf< true, TypeList >
 
struct  RemoveFirstTwoParametersIf
 
struct  RemoveFirstTwoParametersIf< true, TypeList >
 
class  RJittedAction
 
struct  RNewSampleFlag
 
class  RNewSampleNotifier
 
class  RNumpyDS
 A RDataSource implementation which takes a collection of RVecs, which are able to adopt data from Numpy arrays. More...
 
class  ROneTimeCallback
 
struct  RootConversionTraits
 
class  RRootDS
 This class is unused and it has only been implemented as a proof of concept. More...
 
class  RSlotStack
 This is an helper class to allow to pick a slot resorting to a map indexed by thread ids. More...
 
class  RTreeColumnReader
 RTreeColumnReader specialization for TTree values read via TTreeReaderValues. More...
 
class  RTreeColumnReader< RVec< bool > >
 RTreeColumnReader specialization for arrays of boolean values read via TTreeReaderArrays. More...
 
class  RTreeColumnReader< RVec< T > >
 RTreeColumnReader specialization for TTree values read via TTreeReaderArrays. More...
 
class  TValueGetter
 Helper class which keeps track for each slot where to get the entry. More...
 
struct  ValueType
 
struct  ValueType< ROOT::VecOps::RVec< T >, false >
 
struct  ValueType< T, false >
 

Typedefs

using Callback_t = std::function< void(unsigned int)>
 
template<bool MustRemove, typename TypeList >
using RemoveFirstParameterIf_t = typename RemoveFirstParameterIf< MustRemove, TypeList >::type
 
template<bool MustRemove, typename TypeList >
using RemoveFirstTwoParametersIf_t = typename RemoveFirstTwoParametersIf< MustRemove, TypeList >::type
 

Functions

bool AtLeastOneEmptyString (const std::vector< std::string_view > strings)
 
std::shared_ptr< RJittedDefineBookDefineJit (std::string_view name, std::string_view expression, RLoopManager &lm, RDataSource *ds, const RBookedDefines &customCols, const ColumnNames_t &branches, std::shared_ptr< RNodeBase > *upcastNodeOnHeap)
 Book the jitting of a Define call. More...
 
std::shared_ptr< RJittedDefineBookDefinePerSampleJit (std::string_view name, std::string_view expression, RLoopManager &lm, const RBookedDefines &customCols, std::shared_ptr< RNodeBase > *upcastNodeOnHeap)
 Book the jitting of a DefinePerSample call. More...
 
void BookFilterJit (const std::shared_ptr< RJittedFilter > &jittedFilter, std::shared_ptr< RDFDetail::RNodeBase > *prevNodeOnHeap, std::string_view name, std::string_view expression, const std::map< std::string, std::string > &aliasMap, const ColumnNames_t &branches, const RBookedDefines &customCols, TTree *tree, RDataSource *ds)
 Book the jitting of a Filter call. More...
 
template<typename T >
constexpr std::size_t CacheLineStep ()
 Stepping through CacheLineStep<T> values in a vector<T> brings you to a new cache line. More...
 
void CheckDefineType (RDFDetail::RDefineBase &define, const std::type_info &tid)
 
void CheckForDefinition (const std::string &where, std::string_view definedColView, const ColumnNames_t &customCols, const std::map< std::string, std::string > &aliasMap, const ColumnNames_t &treeColumns, const ColumnNames_t &dataSourceColumns)
 Throw if column definedColView is not already there. More...
 
void CheckForDuplicateSnapshotColumns (const ColumnNames_t &cols)
 
void CheckForRedefinition (const std::string &where, std::string_view definedColView, const ColumnNames_t &customCols, const std::map< std::string, std::string > &aliasMap, const ColumnNames_t &treeColumns, const ColumnNames_t &dataSourceColumns)
 Throw if column definedColView is already there. More...
 
void CheckTypesAndPars (unsigned int nTemplateParams, unsigned int nColumnNames)
 
void CheckValidCppVarName (std::string_view var, const std::string &where)
 
std::string ColumnName2ColumnTypeName (const std::string &colName, TTree *tree, RDataSource *ds, RDefineBase *define, bool vector2rvec)
 Return a string containing the type of the given branch. More...
 
std::string ComposeRVecTypeName (const std::string &valueType)
 
ColumnNames_t ConvertRegexToColumns (const ColumnNames_t &colNames, std::string_view columnNameRegexp, std::string_view callerName)
 
std::string DemangleTypeIdName (const std::type_info &typeInfo)
 
template<typename T >
void Erase (const T &that, std::vector< T > &v)
 Erase that element from vector v More...
 
ColumnNames_t FilterArraySizeColNames (const ColumnNames_t &columnNames, const std::string &action)
 Take a list of column names, return that list with entries starting by '#' filtered out. More...
 
std::vector< bool > FindUndefinedDSColumns (const ColumnNames_t &requestedCols, const ColumnNames_t &definedCols)
 Return a bitset each element of which indicates whether the corresponding element in selectedColumns is the name of a column that must be defined via datasource. More...
 
ColumnNames_t FindUnknownColumns (const ColumnNames_t &requiredCols, const ColumnNames_t &datasetColumns, const ColumnNames_t &definedCols, const ColumnNames_t &dataSourceColumns)
 
ULong64_t GetAddress (std::vector< std::string > &p)
 
ULong64_t GetAddress (TTree &p)
 
std::vector< std::string > GetBranchNames (TTree &t, bool allowDuplicates=true)
 Get all the branches names, including the ones of the friend trees. More...
 
std::string GetBranchOrLeafTypeName (TTree &t, const std::string &colName)
 Return the typename of object colName stored in t, if any. More...
 
unsigned int GetColumnWidth (const std::vector< std::string > &names, const unsigned int minColumnSpace=8u)
 Get optimal column width for printing a table given the names and the desired minimal space between columns. More...
 
std::vector< std::string > GetFilterNames (const std::shared_ptr< RLoopManager > &loopManager)
 
std::string GetLeafTypeName (TLeaf *leaf, const std::string &colName)
 
unsigned int GetNSlots ()
 
ColumnNames_t GetTopLevelBranchNames (TTree &t)
 Get all the top-level branches names, including the ones of the friend trees. More...
 
std::vector< std::string > GetValidatedArgTypes (const ColumnNames_t &colNames, const RBookedDefines &defines, TTree *tree, RDataSource *ds, const std::string &context, bool vector2rvec)
 
ColumnNames_t GetValidatedColumnNames (RLoopManager &lm, const unsigned int nColumns, const ColumnNames_t &columns, const ColumnNames_t &validDefines, RDataSource *ds)
 Given the desired number of columns and the user-provided list of columns: More...
 
template<typename dtype >
ULong64_t GetVectorAddress (std::vector< dtype > &p)
 
Long64_t InterpreterCalc (const std::string &code, const std::string &context="")
 Jit code in the interpreter with TInterpreter::Calc, throw in case of errors. More...
 
void InterpreterDeclare (const std::string &code)
 Declare code in the interpreter via the TInterpreter::Declare method, throw in case of errors. More...
 
bool IsInternalColumn (std::string_view colName)
 Whether custom column with name colName is an "internal" column such as rdfentry_ or rdfslot_. More...
 
std::string JitBuildAction (const ColumnNames_t &cols, std::shared_ptr< RDFDetail::RNodeBase > *prevNode, const std::type_info &helperArgType, const std::type_info &at, void *helperArgOnHeap, TTree *tree, const unsigned int nSlots, const RBookedDefines &customCols, RDataSource *ds, std::weak_ptr< RJittedAction > *jittedActionOnHeap)
 
template<typename T >
std::unique_ptr< RDFDetail::RColumnReaderBaseMakeColumnReader (unsigned int slot, RDFDetail::RDefineBase *define, TTreeReader *r, ROOT::RDF::RDataSource *ds, const std::vector< void * > *DSValuePtrsPtr, const std::string &colName)
 
template<typename... ColTypes>
std::array< std::unique_ptr< RDFDetail::RColumnReaderBase >, sizeof...(ColTypes)> MakeColumnReaders (unsigned int slot, TTreeReader *r, TypeList< ColTypes... >, const RColumnReadersInfo &colInfo)
 Create a group of column readers, one per type in the parameter pack. More...
 
template<typename T >
std::unique_ptr< RDFDetail::RColumnReaderBaseMakeColumnReadersHelper (unsigned int slot, RDFDetail::RDefineBase *define, const std::map< std::string, std::vector< void * > > &DSValuePtrsMap, TTreeReader *r, ROOT::RDF::RDataSource *ds, const std::string &colName)
 
template<typename... ColumnTypes>
RDataFrameMakeNumpyDataFrame (PyObject *pyRVecs, std::pair< std::string, ROOT::RVec< ColumnTypes > * > &&... colNameProxyPairs)
 
RDataFrame MakeRootDataFrame (std::string_view treeName, std::string_view fileNameGlob)
 
template<typename... ArgTypes, typename F >
std::function< bool(ArgTypes...)> NotHelper (ROOT::TypeTraits::TypeList< ArgTypes... >, F &&f)
 
template<typename... ArgTypes, typename Ret , typename... Args>
std::function< bool(ArgTypes...)> NotHelper (ROOT::TypeTraits::TypeList< ArgTypes... >, Ret(*f)(Args...))
 
ParsedTreePath ParseTreePath (std::string_view fullTreeName)
 
template<std::size_t N, typename T , typename F >
auto PassAsVec (F &&f) -> PassAsVecHelper< std::make_index_sequence< N >, T, F >
 
std::string PrettyPrintAddr (const void *const addr)
 
template<typename T >
ROOT::RDF::RResultPtr< std::vector< T > > RDataFrameTake (ROOT::RDF::RNode df, std::string_view column)
 
std::vector< std::string > ReplaceDotWithUnderscore (const std::vector< std::string > &columnNames)
 Replace occurrences of '. More...
 
std::string ResolveAlias (const std::string &col, const std::map< std::string, std::string > &aliasMap)
 
const ColumnNames_t SelectColumns (unsigned int nRequiredNames, const ColumnNames_t &names, const ColumnNames_t &defaultNames)
 Choose between local column names or default column names, throw in case of errors. More...
 
template<typename BufType , typename... ColTypes, std::size_t... Idx>
void TTreeAsFlatMatrix (std::index_sequence< Idx... >, TTree &tree, std::vector< BufType > &matrix, std::vector< std::string > &columns)
 
template<typename BufType , typename... ColTypes>
void TTreeAsFlatMatrixHelper (TTree &tree, std::vector< BufType > &matrix, std::vector< std::string > &columns)
 
std::string TypeID2TypeName (const std::type_info &id)
 Returns the name of a type starting from its type_info An empty string is returned in case of failure References and pointers are not supported since those cannot be stored in columns. More...
 
char TypeName2ROOTTypeName (const std::string &b)
 Convert type name (e.g. More...
 
const std::type_info & TypeName2TypeID (const std::string &name)
 Return the type_info associated to a name. More...
 
std::shared_ptr< RNodeBaseUpcastNode (std::shared_ptr< RNodeBase > ptr)
 
void ValidateSnapshotOutput (const RSnapshotOptions &opts, const std::string &treeName, const std::string &fileName)
 
template<typename DS >
void WarnOnLazySnapshotNotTriggered (const ROOT::RDF::RResultPtr< ROOT::RDF::RInterface< ROOT::Detail::RDF::RLoopManager, DS > > &r)
 
template<typename T >
void WarnOnLazySnapshotNotTriggered (const ROOT::RDF::RResultPtr< T > &)
 

Variables

static constexpr std::size_t kCacheLineSize = 64
 

Typedef Documentation

◆ Callback_t

using ROOT::Internal::RDF::Callback_t = typedef std::function<void(unsigned int)>

Definition at line 46 of file RLoopManager.hxx.

◆ RemoveFirstParameterIf_t

template<bool MustRemove, typename TypeList >
using ROOT::Internal::RDF::RemoveFirstParameterIf_t = typedef typename RemoveFirstParameterIf<MustRemove, TypeList>::type

Definition at line 149 of file Utils.hxx.

◆ RemoveFirstTwoParametersIf_t

template<bool MustRemove, typename TypeList >
using ROOT::Internal::RDF::RemoveFirstTwoParametersIf_t = typedef typename RemoveFirstTwoParametersIf<MustRemove, TypeList>::type

Definition at line 163 of file Utils.hxx.

Function Documentation

◆ AtLeastOneEmptyString()

bool ROOT::Internal::RDF::AtLeastOneEmptyString ( const std::vector< std::string_view strings)

Definition at line 798 of file RDFInterfaceUtils.cxx.

◆ BookDefineJit()

std::shared_ptr< RJittedDefine > ROOT::Internal::RDF::BookDefineJit ( std::string_view  name,
std::string_view  expression,
RLoopManager lm,
RDataSource ds,
const RBookedDefines customCols,
const ColumnNames_t branches,
std::shared_ptr< RNodeBase > *  upcastNodeOnHeap 
)

Book the jitting of a Define call.

Definition at line 670 of file RDFInterfaceUtils.cxx.

◆ BookDefinePerSampleJit()

std::shared_ptr< RJittedDefine > ROOT::Internal::RDF::BookDefinePerSampleJit ( std::string_view  name,
std::string_view  expression,
RLoopManager lm,
const RBookedDefines customCols,
std::shared_ptr< RNodeBase > *  upcastNodeOnHeap 
)

Book the jitting of a DefinePerSample call.

Definition at line 715 of file RDFInterfaceUtils.cxx.

◆ BookFilterJit()

void ROOT::Internal::RDF::BookFilterJit ( const std::shared_ptr< RJittedFilter > &  jittedFilter,
std::shared_ptr< RDFDetail::RNodeBase > *  prevNodeOnHeap,
std::string_view  name,
std::string_view  expression,
const std::map< std::string, std::string > &  aliasMap,
const ColumnNames_t branches,
const RBookedDefines customCols,
TTree tree,
RDataSource ds 
)

Book the jitting of a Filter call.

Definition at line 624 of file RDFInterfaceUtils.cxx.

◆ CacheLineStep()

template<typename T >
constexpr std::size_t ROOT::Internal::RDF::CacheLineStep ( )
constexpr

Stepping through CacheLineStep<T> values in a vector<T> brings you to a new cache line.

Useful to avoid false sharing.

Definition at line 220 of file Utils.hxx.

◆ CheckDefineType()

void ROOT::Internal::RDF::CheckDefineType ( RDFDetail::RDefineBase define,
const std::type_info &  tid 
)

Definition at line 20 of file RDefineReader.cxx.

◆ CheckForDefinition()

void ROOT::Internal::RDF::CheckForDefinition ( const std::string &  where,
std::string_view  definedColView,
const ColumnNames_t customCols,
const std::map< std::string, std::string > &  aliasMap,
const ColumnNames_t treeColumns,
const ColumnNames_t dataSourceColumns 
)

Throw if column definedColView is not already there.

Definition at line 505 of file RDFInterfaceUtils.cxx.

◆ CheckForDuplicateSnapshotColumns()

void ROOT::Internal::RDF::CheckForDuplicateSnapshotColumns ( const ColumnNames_t cols)

Definition at line 879 of file RDFInterfaceUtils.cxx.

◆ CheckForRedefinition()

void ROOT::Internal::RDF::CheckForRedefinition ( const std::string &  where,
std::string_view  definedColView,
const ColumnNames_t customCols,
const std::map< std::string, std::string > &  aliasMap,
const ColumnNames_t treeColumns,
const ColumnNames_t dataSourceColumns 
)

Throw if column definedColView is already there.

Definition at line 471 of file RDFInterfaceUtils.cxx.

◆ CheckTypesAndPars()

void ROOT::Internal::RDF::CheckTypesAndPars ( unsigned int  nTemplateParams,
unsigned int  nColumnNames 
)

Definition at line 538 of file RDFInterfaceUtils.cxx.

◆ CheckValidCppVarName()

void ROOT::Internal::RDF::CheckValidCppVarName ( std::string_view  var,
const std::string &  where 
)

Definition at line 386 of file RDFInterfaceUtils.cxx.

◆ ColumnName2ColumnTypeName()

std::string ROOT::Internal::RDF::ColumnName2ColumnTypeName ( const std::string &  colName,
TTree tree,
RDataSource ds,
RDefineBase define,
bool  vector2rvec 
)

Return a string containing the type of the given branch.

Works both with real TTree branches and with temporary column created by Define. Throws if type name deduction fails. Note that for fixed- or variable-sized c-style arrays the returned type name will be RVec<T>. vector2rvec specifies whether typename 'std::vector<T>' should be converted to 'RVec<T>' or returned as is customColID is only used if isDefine is true, and must correspond to the custom column's unique identifier returned by its GetID() method.

Definition at line 224 of file RDFUtils.cxx.

◆ ComposeRVecTypeName()

std::string ROOT::Internal::RDF::ComposeRVecTypeName ( const std::string &  valueType)

Definition at line 133 of file RDFUtils.cxx.

◆ ConvertRegexToColumns()

ColumnNames_t ROOT::Internal::RDF::ConvertRegexToColumns ( const ColumnNames_t colNames,
std::string_view  columnNameRegexp,
std::string_view  callerName 
)

Definition at line 435 of file RDFInterfaceUtils.cxx.

◆ DemangleTypeIdName()

std::string ROOT::Internal::RDF::DemangleTypeIdName ( const std::type_info &  typeInfo)

Definition at line 425 of file RDFInterfaceUtils.cxx.

◆ Erase()

template<typename T >
void ROOT::Internal::RDF::Erase ( const T &  that,
std::vector< T > &  v 
)

Erase that element from vector v

Definition at line 187 of file Utils.hxx.

◆ FilterArraySizeColNames()

ColumnNames_t ROOT::Internal::RDF::FilterArraySizeColNames ( const ColumnNames_t columnNames,
const std::string &  action 
)

Take a list of column names, return that list with entries starting by '#' filtered out.

The function throws when filtering out a column this way.

Definition at line 347 of file RDFInterfaceUtils.cxx.

◆ FindUndefinedDSColumns()

std::vector< bool > ROOT::Internal::RDF::FindUndefinedDSColumns ( const ColumnNames_t requestedCols,
const ColumnNames_t definedCols 
)

Return a bitset each element of which indicates whether the corresponding element in selectedColumns is the name of a column that must be defined via datasource.

All elements of the returned vector are false if no data-source is present.

Definition at line 870 of file RDFInterfaceUtils.cxx.

◆ FindUnknownColumns()

ColumnNames_t ROOT::Internal::RDF::FindUnknownColumns ( const ColumnNames_t requiredCols,
const ColumnNames_t datasetColumns,
const ColumnNames_t definedCols,
const ColumnNames_t dataSourceColumns 
)

Definition at line 577 of file RDFInterfaceUtils.cxx.

◆ GetAddress() [1/2]

ULong64_t ROOT::Internal::RDF::GetAddress ( std::vector< std::string > &  p)
inline

Definition at line 30 of file PyROOTHelpers.hxx.

◆ GetAddress() [2/2]

ULong64_t ROOT::Internal::RDF::GetAddress ( TTree p)
inline

Definition at line 34 of file PyROOTHelpers.hxx.

◆ GetBranchNames()

ColumnNames_t ROOT::Internal::RDF::GetBranchNames ( TTree t,
bool  allowDuplicates = true 
)

Get all the branches names, including the ones of the friend trees.

Definition at line 327 of file RLoopManager.cxx.

◆ GetBranchOrLeafTypeName()

std::string ROOT::Internal::RDF::GetBranchOrLeafTypeName ( TTree t,
const std::string &  colName 
)

Return the typename of object colName stored in t, if any.

Return an empty string if colName is not in t. Supported cases:

  • leaves corresponding to single values, variable- and fixed-length arrays, with following syntax:
  • TBranchElements, as long as TTree::GetBranch resolves their names

Definition at line 165 of file RDFUtils.cxx.

◆ GetColumnWidth()

unsigned int ROOT::Internal::RDF::GetColumnWidth ( const std::vector< std::string > &  names,
const unsigned int  minColumnSpace = 8u 
)

Get optimal column width for printing a table given the names and the desired minimal space between columns.

Definition at line 358 of file RDFUtils.cxx.

◆ GetFilterNames()

std::vector< std::string > ROOT::Internal::RDF::GetFilterNames ( const std::shared_ptr< RLoopManager > &  loopManager)

Definition at line 597 of file RDFInterfaceUtils.cxx.

◆ GetLeafTypeName()

std::string ROOT::Internal::RDF::GetLeafTypeName ( TLeaf leaf,
const std::string &  colName 
)

Definition at line 138 of file RDFUtils.cxx.

◆ GetNSlots()

unsigned int ROOT::Internal::RDF::GetNSlots ( )

Definition at line 288 of file RDFUtils.cxx.

◆ GetTopLevelBranchNames()

ColumnNames_t ROOT::Internal::RDF::GetTopLevelBranchNames ( TTree t)

Get all the top-level branches names, including the ones of the friend trees.

Definition at line 416 of file RDFInterfaceUtils.cxx.

◆ GetValidatedArgTypes()

std::vector< std::string > ROOT::Internal::RDF::GetValidatedArgTypes ( const ColumnNames_t colNames,
const RBookedDefines defines,
TTree tree,
RDataSource ds,
const std::string &  context,
bool  vector2rvec 
)

Definition at line 846 of file RDFInterfaceUtils.cxx.

◆ GetValidatedColumnNames()

ColumnNames_t ROOT::Internal::RDF::GetValidatedColumnNames ( RLoopManager lm,
const unsigned int  nColumns,
const ColumnNames_t columns,
const ColumnNames_t validDefines,
RDataSource ds 
)

Given the desired number of columns and the user-provided list of columns:

  • fallback to using the first nColumns default columns if needed (or throw if nColumns > nDefaultColumns)
  • check that selected column names refer to valid branches, custom columns or datasource columns (throw if not)
  • replace column names from aliases by the actual column name Return the list of selected column names.

Definition at line 817 of file RDFInterfaceUtils.cxx.

◆ GetVectorAddress()

template<typename dtype >
ULong64_t ROOT::Internal::RDF::GetVectorAddress ( std::vector< dtype > &  p)

Definition at line 25 of file PyROOTHelpers.hxx.

◆ InterpreterCalc()

Long64_t ROOT::Internal::RDF::InterpreterCalc ( const std::string &  code,
const std::string &  context = "" 
)

Jit code in the interpreter with TInterpreter::Calc, throw in case of errors.

The optional context parameter, if present, is mentioned in the error message. The pointer returned by the call to TInterpreter::Calc is returned in case of success.

Definition at line 332 of file RDFUtils.cxx.

◆ InterpreterDeclare()

void ROOT::Internal::RDF::InterpreterDeclare ( const std::string &  code)

Declare code in the interpreter via the TInterpreter::Declare method, throw in case of errors.

Definition at line 320 of file RDFUtils.cxx.

◆ IsInternalColumn()

bool ROOT::Internal::RDF::IsInternalColumn ( std::string_view  colName)

Whether custom column with name colName is an "internal" column such as rdfentry_ or rdfslot_.

Definition at line 349 of file RDFUtils.cxx.

◆ JitBuildAction()

std::string ROOT::Internal::RDF::JitBuildAction ( const ColumnNames_t cols,
std::shared_ptr< RDFDetail::RNodeBase > *  prevNode,
const std::type_info &  helperArgType,
const std::type_info &  at,
void helperArgOnHeap,
TTree tree,
const unsigned int  nSlots,
const RBookedDefines customCols,
RDataSource ds,
std::weak_ptr< RJittedAction > *  jittedActionOnHeap 
)

Definition at line 748 of file RDFInterfaceUtils.cxx.

◆ MakeColumnReader()

template<typename T >
std::unique_ptr< RDFDetail::RColumnReaderBase > ROOT::Internal::RDF::MakeColumnReader ( unsigned int  slot,
RDFDetail::RDefineBase define,
TTreeReader r,
ROOT::RDF::RDataSource ds,
const std::vector< void * > *  DSValuePtrsPtr,
const std::string &  colName 
)

Definition at line 41 of file ColumnReaderUtils.hxx.

◆ MakeColumnReaders()

template<typename... ColTypes>
std::array< std::unique_ptr< RDFDetail::RColumnReaderBase >, sizeof...(ColTypes)> ROOT::Internal::RDF::MakeColumnReaders ( unsigned int  slot,
TTreeReader r,
TypeList< ColTypes... >  ,
const RColumnReadersInfo colInfo 
)

Create a group of column readers, one per type in the parameter pack.

colInfo.fColNames and colInfo.fIsDefine are expected to have size equal to the parameter pack, and elements ordered accordingly, i.e. fIsDefine[0] refers to fColNames[0] which is of type "ColTypes[0]".

Definition at line 95 of file ColumnReaderUtils.hxx.

◆ MakeColumnReadersHelper()

template<typename T >
std::unique_ptr< RDFDetail::RColumnReaderBase > ROOT::Internal::RDF::MakeColumnReadersHelper ( unsigned int  slot,
RDFDetail::RDefineBase define,
const std::map< std::string, std::vector< void * > > &  DSValuePtrsMap,
TTreeReader r,
ROOT::RDF::RDataSource ds,
const std::string &  colName 
)

Definition at line 68 of file ColumnReaderUtils.hxx.

◆ MakeNumpyDataFrame()

template<typename... ColumnTypes>
RDataFrame * ROOT::Internal::RDF::MakeNumpyDataFrame ( PyObject pyRVecs,
std::pair< std::string, ROOT::RVec< ColumnTypes > * > &&...  colNameProxyPairs 
)

Definition at line 225 of file RNumpyDS.hxx.

◆ MakeRootDataFrame()

RDataFrame ROOT::Internal::RDF::MakeRootDataFrame ( std::string_view  treeName,
std::string_view  fileNameGlob 
)

Definition at line 171 of file RRootDS.cxx.

◆ NotHelper() [1/2]

template<typename... ArgTypes, typename F >
std::function< bool(ArgTypes...)> ROOT::Internal::RDF::NotHelper ( ROOT::TypeTraits::TypeList< ArgTypes... >  ,
F &&  f 
)

Definition at line 34 of file RDFHelpers.hxx.

◆ NotHelper() [2/2]

template<typename... ArgTypes, typename Ret , typename... Args>
std::function< bool(ArgTypes...)> ROOT::Internal::RDF::NotHelper ( ROOT::TypeTraits::TypeList< ArgTypes... >  ,
Ret(*)(Args...)  f 
)

Definition at line 40 of file RDFHelpers.hxx.

◆ ParseTreePath()

ParsedTreePath ROOT::Internal::RDF::ParseTreePath ( std::string_view  fullTreeName)

Definition at line 602 of file RDFInterfaceUtils.cxx.

◆ PassAsVec()

template<std::size_t N, typename T , typename F >
auto ROOT::Internal::RDF::PassAsVec ( F &&  f) -> PassAsVecHelper<std::make_index_sequence<N>, T, F>

Definition at line 60 of file RDFHelpers.hxx.

◆ PrettyPrintAddr()

std::string ROOT::Internal::RDF::PrettyPrintAddr ( const void *const  addr)

Definition at line 615 of file RDFInterfaceUtils.cxx.

◆ RDataFrameTake()

template<typename T >
ROOT::RDF::RResultPtr< std::vector< T > > ROOT::Internal::RDF::RDataFrameTake ( ROOT::RDF::RNode  df,
std::string_view  column 
)

Definition at line 67 of file PyROOTHelpers.hxx.

◆ ReplaceDotWithUnderscore()

std::vector< std::string > ROOT::Internal::RDF::ReplaceDotWithUnderscore ( const std::vector< std::string > &  columnNames)

Replace occurrences of '.

' with '_' in each string passed as argument. An Info message is printed when this happens. Dots at the end of the string are not replaced. An exception is thrown in case the resulting set of strings would contain duplicates.

Definition at line 301 of file RDFUtils.cxx.

◆ ResolveAlias()

std::string ROOT::Internal::RDF::ResolveAlias ( const std::string &  col,
const std::map< std::string, std::string > &  aliasMap 
)

Definition at line 373 of file RDFInterfaceUtils.cxx.

◆ SelectColumns()

const ColumnNames_t ROOT::Internal::RDF::SelectColumns ( unsigned int  nRequiredNames,
const ColumnNames_t names,
const ColumnNames_t defaultNames 
)

Choose between local column names or default column names, throw in case of errors.

Definition at line 552 of file RDFInterfaceUtils.cxx.

◆ TTreeAsFlatMatrix()

template<typename BufType , typename... ColTypes, std::size_t... Idx>
void ROOT::Internal::RDF::TTreeAsFlatMatrix ( std::index_sequence< Idx... >  ,
TTree tree,
std::vector< BufType > &  matrix,
std::vector< std::string > &  columns 
)

Definition at line 40 of file PyROOTHelpers.hxx.

◆ TTreeAsFlatMatrixHelper()

template<typename BufType , typename... ColTypes>
void ROOT::Internal::RDF::TTreeAsFlatMatrixHelper ( TTree tree,
std::vector< BufType > &  matrix,
std::vector< std::string > &  columns 
)

Definition at line 58 of file PyROOTHelpers.hxx.

◆ TypeID2TypeName()

std::string ROOT::Internal::RDF::TypeID2TypeName ( const std::type_info &  id)

Returns the name of a type starting from its type_info An empty string is returned in case of failure References and pointers are not supported since those cannot be stored in columns.

Definition at line 99 of file RDFUtils.cxx.

◆ TypeName2ROOTTypeName()

char ROOT::Internal::RDF::TypeName2ROOTTypeName ( const std::string &  b)

Convert type name (e.g.

"Float_t") to ROOT type code (e.g. 'F') – see TBranch documentation. Return a space ' ' in case no match was found.

Definition at line 257 of file RDFUtils.cxx.

◆ TypeName2TypeID()

const std::type_info & ROOT::Internal::RDF::TypeName2TypeID ( const std::string &  name)

Return the type_info associated to a name.

If the association fails, an exception is thrown. References and pointers are not supported since those cannot be stored in columns.

Definition at line 51 of file RDFUtils.cxx.

◆ UpcastNode()

std::shared_ptr< RNodeBase > ROOT::Internal::RDF::UpcastNode ( std::shared_ptr< RNodeBase ptr)

Definition at line 807 of file RDFInterfaceUtils.cxx.

◆ ValidateSnapshotOutput()

void ROOT::Internal::RDF::ValidateSnapshotOutput ( const RSnapshotOptions opts,
const std::string &  treeName,
const std::string &  fileName 
)

Definition at line 236 of file RDFActionHelpers.cxx.

◆ WarnOnLazySnapshotNotTriggered() [1/2]

template<typename DS >
void ROOT::Internal::RDF::WarnOnLazySnapshotNotTriggered ( const ROOT::RDF::RResultPtr< ROOT::RDF::RInterface< ROOT::Detail::RDF::RLoopManager, DS > > &  r)

Definition at line 44 of file RResultPtr.hxx.

◆ WarnOnLazySnapshotNotTriggered() [2/2]

template<typename T >
void ROOT::Internal::RDF::WarnOnLazySnapshotNotTriggered ( const ROOT::RDF::RResultPtr< T > &  )
inline

Definition at line 39 of file RResultPtr.hxx.

Variable Documentation

◆ kCacheLineSize

constexpr std::size_t ROOT::Internal::RDF::kCacheLineSize = 64
staticconstexpr

Definition at line 214 of file Utils.hxx.