Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::RDF::CustomLoaderHelper Class Reference

Definition at line 19 of file CustomLoaderHelpers.hxx.

Public Types

using ColHandler_t = void (*)(ROOT::RVecF &, void *, std::size_t maxSize, float padding)
 Converts one type-erased column value to float and appends it to the destination vector, vector columns are truncated or padded to their maximum size.
 

Public Member Functions

 CustomLoaderHelper (const CustomLoaderHelper &)=delete
 
 CustomLoaderHelper (const std::shared_ptr< ROOT::RVecF > &location, const std::vector< const std::type_info * > &colTypeIDs, const std::vector< std::size_t > &vecSizes, float vecPadding)
 
 CustomLoaderHelper (CustomLoaderHelper &&)=default
 
 ~CustomLoaderHelper () override=default
 
auto CallFinalizeTask (unsigned int slot) -> decltype(std::declval< T >().FinalizeTask(slot))
 
void CallFinalizeTask (unsigned int, Args...)
 
CustomLoaderHelper CallMakeNew (void *typeErasedResSharedPtr, std::string_view variation="nominal")
 
void * CallPartialUpdate (...)
 
auto CallPartialUpdate (unsigned int slot) -> decltype(std::declval< H >().PartialUpdate(slot),(void *)(nullptr))
 
void Exec (unsigned int slot, const std::vector< void * > &values)
 
void Finalize ()
 
std::string GetActionName ()
 
virtual std::unique_ptr< RMergeableValueBase > GetMergeableValue () const
 
virtual ROOT::RDF::SampleCallback_t GetSampleCallback ()
 Override this method to register a callback that is executed before the processing a new data sample starts.
 
void Initialize ()
 
void InitTask (TTreeReader *, unsigned int)
 
CustomLoaderHelper & operator= (const CustomLoaderHelper &)=delete
 
CustomLoaderHelper & operator= (CustomLoaderHelper &&)=default
 

Private Attributes

std::vector< ColHandler_t > fColHandlers
 One handler per input column, resolved once from the column types.
 
std::shared_ptr< ROOT::RVecF > fLocation
 
std::vector< std::size_t > fMaxSizes
 Maximum size of each input column, resolved once from the vector sizes, only used for vector columns.
 
float fVecPadding
 Value used to pad vector columns shorter than their maximum size.
 

#include <ROOT/RDF/CustomLoaderHelpers.hxx>

Inheritance diagram for ROOT::Internal::RDF::CustomLoaderHelper:
[legend]

Member Typedef Documentation

◆ ColHandler_t

using ROOT::Internal::RDF::CustomLoaderHelper::ColHandler_t = void (*)(ROOT::RVecF &, void *, std::size_t maxSize, float padding)

Converts one type-erased column value to float and appends it to the destination vector, vector columns are truncated or padded to their maximum size.

Definition at line 23 of file CustomLoaderHelpers.hxx.

Constructor & Destructor Documentation

◆ CustomLoaderHelper() [1/3]

ROOT::Internal::RDF::CustomLoaderHelper::CustomLoaderHelper ( const std::shared_ptr< ROOT::RVecF > & location,
const std::vector< const std::type_info * > & colTypeIDs,
const std::vector< std::size_t > & vecSizes,
float vecPadding )

Definition at line 54 of file RDFCustomLoaderHelpers.cxx.

◆ CustomLoaderHelper() [2/3]

ROOT::Internal::RDF::CustomLoaderHelper::CustomLoaderHelper ( CustomLoaderHelper && )
default

◆ CustomLoaderHelper() [3/3]

ROOT::Internal::RDF::CustomLoaderHelper::CustomLoaderHelper ( const CustomLoaderHelper & )
delete

◆ ~CustomLoaderHelper()

ROOT::Internal::RDF::CustomLoaderHelper::~CustomLoaderHelper ( )
overridedefault

Member Function Documentation

◆ CallFinalizeTask() [1/2]

auto ROOT::Detail::RDF::RActionImpl< CustomLoaderHelper >::CallFinalizeTask ( unsigned int slot) -> decltype(std::declval<T>().FinalizeTask(slot))
inlineinherited

Definition at line 44 of file RActionImpl.hxx.

◆ CallFinalizeTask() [2/2]

void ROOT::Detail::RDF::RActionImpl< CustomLoaderHelper >::CallFinalizeTask ( unsigned int ,
Args...  )
inlineinherited

Definition at line 50 of file RActionImpl.hxx.

◆ CallMakeNew()

CustomLoaderHelper ROOT::Detail::RDF::RActionImpl< CustomLoaderHelper >::CallMakeNew ( void * typeErasedResSharedPtr,
std::string_view variation = "nominal" )
inlineinherited

Definition at line 64 of file RActionImpl.hxx.

◆ CallPartialUpdate() [1/2]

void * ROOT::Detail::RDF::RActionImpl< CustomLoaderHelper >::CallPartialUpdate ( ...)
inlineinherited

Definition at line 59 of file RActionImpl.hxx.

◆ CallPartialUpdate() [2/2]

auto ROOT::Detail::RDF::RActionImpl< CustomLoaderHelper >::CallPartialUpdate ( unsigned int slot) -> decltype(std::declval<H>().PartialUpdate(slot), (void *)(nullptr))
inlineinherited

Definition at line 53 of file RActionImpl.hxx.

◆ Exec()

void ROOT::Internal::RDF::CustomLoaderHelper::Exec ( unsigned int slot,
const std::vector< void * > & values )

Definition at line 72 of file RDFCustomLoaderHelpers.cxx.

◆ Finalize()

void ROOT::Internal::RDF::CustomLoaderHelper::Finalize ( )
inline

Definition at line 49 of file CustomLoaderHelpers.hxx.

◆ GetActionName()

std::string ROOT::Internal::RDF::CustomLoaderHelper::GetActionName ( )
inline

Definition at line 51 of file CustomLoaderHelpers.hxx.

◆ GetMergeableValue()

virtual std::unique_ptr< RMergeableValueBase > ROOT::Detail::RDF::RActionImpl< CustomLoaderHelper >::GetMergeableValue ( ) const
inlinevirtualinherited

Definition at line 79 of file RActionImpl.hxx.

◆ GetSampleCallback()

virtual ROOT::RDF::SampleCallback_t ROOT::Detail::RDF::RActionImpl< CustomLoaderHelper >::GetSampleCallback ( )
inlinevirtualinherited

Override this method to register a callback that is executed before the processing a new data sample starts.

The callback will be invoked in the same conditions as with DefinePerSample().

Definition at line 86 of file RActionImpl.hxx.

◆ Initialize()

void ROOT::Internal::RDF::CustomLoaderHelper::Initialize ( )
inline

Definition at line 48 of file CustomLoaderHelpers.hxx.

◆ InitTask()

void ROOT::Internal::RDF::CustomLoaderHelper::InitTask ( TTreeReader * ,
unsigned int  )
inline

Definition at line 45 of file CustomLoaderHelpers.hxx.

◆ operator=() [1/2]

CustomLoaderHelper & ROOT::Internal::RDF::CustomLoaderHelper::operator= ( const CustomLoaderHelper & )
delete

◆ operator=() [2/2]

CustomLoaderHelper & ROOT::Internal::RDF::CustomLoaderHelper::operator= ( CustomLoaderHelper && )
default

Member Data Documentation

◆ fColHandlers

std::vector<ColHandler_t> ROOT::Internal::RDF::CustomLoaderHelper::fColHandlers
private

One handler per input column, resolved once from the column types.

Definition at line 28 of file CustomLoaderHelpers.hxx.

◆ fLocation

std::shared_ptr<ROOT::RVecF> ROOT::Internal::RDF::CustomLoaderHelper::fLocation
private

Definition at line 26 of file CustomLoaderHelpers.hxx.

◆ fMaxSizes

std::vector<std::size_t> ROOT::Internal::RDF::CustomLoaderHelper::fMaxSizes
private

Maximum size of each input column, resolved once from the vector sizes, only used for vector columns.

Definition at line 30 of file CustomLoaderHelpers.hxx.

◆ fVecPadding

float ROOT::Internal::RDF::CustomLoaderHelper::fVecPadding
private

Value used to pad vector columns shorter than their maximum size.

Definition at line 32 of file CustomLoaderHelpers.hxx.

Libraries for ROOT::Internal::RDF::CustomLoaderHelper:

The documentation for this class was generated from the following files: