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

Definition at line 40 of file RActionBase.hxx.

Public Member Functions

 RActionBase (const RActionBase &)=delete
 
 RActionBase (RLoopManager *lm, const ColumnNames_t &colNames, const RColumnRegister &colRegister, const std::vector< std::string > &prevVariations)
 
virtual ~RActionBase ()
 
virtual std::unique_ptr< RActionBaseCloneAction (void *newResult)=0
 
virtual void Finalize ()=0
 
virtual void FinalizeSlot (unsigned int)=0
 
RColumnRegisterGetColRegister ()
 
const ColumnNames_tGetColumnNames () const
 
virtual std::shared_ptr< ROOT::Internal::RDF::GraphDrawing::GraphNodeGetGraph (std::unordered_map< void *, std::shared_ptr< ROOT::Internal::RDF::GraphDrawing::GraphNode > > &visitedMap)=0
 
RLoopManagerGetLoopManager ()
 
virtual std::unique_ptr< RMergeableValueBaseGetMergeableValue () const =0
 Retrieve a wrapper to the result of the action that knows how to merge with others of the same type.
 
unsigned int GetNSlots () const
 
virtual ROOT::RDF::SampleCallback_t GetSampleCallback ()=0
 
const std::vector< std::string > & GetVariations () const
 
virtual bool HasRun () const
 
virtual void Initialize ()=0
 
virtual void InitSlot (TTreeReader *r, unsigned int slot)=0
 
virtual std::unique_ptr< RActionBaseMakeVariedAction (std::vector< void * > &&results)=0
 
RActionBaseoperator= (const RActionBase &)=delete
 
virtual void * PartialUpdate (unsigned int slot)=0
 This method is invoked to update a partial result during the event loop, right before passing the result to a user-defined callback registered via RResultPtr::RegisterCallback.
 
virtual void Run (unsigned int slot, Long64_t entry)=0
 
virtual void SetHasRun ()
 
virtual void TriggerChildrenCount ()=0
 

Protected Attributes

RLoopManagerfLoopManager
 A raw pointer to the RLoopManager at the root of this functional graph.
 

Private Attributes

RColumnRegister fColRegister
 
const ColumnNames_t fColumnNames
 
bool fHasRun = false
 
const unsigned int fNSlots
 Number of thread slots used by this node.
 
std::vector< std::string > fVariations
 List of systematic variations that affect the result of this action ("nominal" excluded).
 

#include <ROOT/RDF/RActionBase.hxx>

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

Constructor & Destructor Documentation

◆ RActionBase() [1/2]

RActionBase::RActionBase ( RLoopManager lm,
const ColumnNames_t colNames,
const RColumnRegister colRegister,
const std::vector< std::string > &  prevVariations 
)

Definition at line 17 of file RActionBase.cxx.

◆ RActionBase() [2/2]

ROOT::Internal::RDF::RActionBase::RActionBase ( const RActionBase )
delete

◆ ~RActionBase()

RActionBase::~RActionBase ( )
virtualdefault

Member Function Documentation

◆ CloneAction()

virtual std::unique_ptr< RActionBase > ROOT::Internal::RDF::RActionBase::CloneAction ( void *  newResult)
pure virtual

◆ Finalize()

◆ FinalizeSlot()

virtual void ROOT::Internal::RDF::RActionBase::FinalizeSlot ( unsigned int  )
pure virtual

◆ GetColRegister()

RColumnRegister & ROOT::Internal::RDF::RActionBase::GetColRegister ( )
inline

Definition at line 63 of file RActionBase.hxx.

◆ GetColumnNames()

const ColumnNames_t & ROOT::Internal::RDF::RActionBase::GetColumnNames ( ) const
inline

Definition at line 62 of file RActionBase.hxx.

◆ GetGraph()

virtual std::shared_ptr< ROOT::Internal::RDF::GraphDrawing::GraphNode > ROOT::Internal::RDF::RActionBase::GetGraph ( std::unordered_map< void *, std::shared_ptr< ROOT::Internal::RDF::GraphDrawing::GraphNode > > &  visitedMap)
pure virtual

◆ GetLoopManager()

RLoopManager * ROOT::Internal::RDF::RActionBase::GetLoopManager ( )
inline

Definition at line 64 of file RActionBase.hxx.

◆ GetMergeableValue()

virtual std::unique_ptr< RMergeableValueBase > ROOT::Internal::RDF::RActionBase::GetMergeableValue ( ) const
pure virtual

Retrieve a wrapper to the result of the action that knows how to merge with others of the same type.

Implemented in ROOT::Internal::RDF::RAction< Helper, PrevNode, ColumnTypes_t >, ROOT::Internal::RDF::RJittedAction, and ROOT::Internal::RDF::RVariedAction< Helper, PrevNode, ColumnTypes_t >.

◆ GetNSlots()

unsigned int ROOT::Internal::RDF::RActionBase::GetNSlots ( ) const
inline

Definition at line 65 of file RActionBase.hxx.

◆ GetSampleCallback()

◆ GetVariations()

const std::vector< std::string > & ROOT::Internal::RDF::RActionBase::GetVariations ( ) const
inline

Definition at line 91 of file RActionBase.hxx.

◆ HasRun()

virtual bool ROOT::Internal::RDF::RActionBase::HasRun ( ) const
inlinevirtual

Reimplemented in ROOT::Internal::RDF::RJittedAction.

Definition at line 77 of file RActionBase.hxx.

◆ Initialize()

◆ InitSlot()

virtual void ROOT::Internal::RDF::RActionBase::InitSlot ( TTreeReader r,
unsigned int  slot 
)
pure virtual

◆ MakeVariedAction()

virtual std::unique_ptr< RActionBase > ROOT::Internal::RDF::RActionBase::MakeVariedAction ( std::vector< void * > &&  results)
pure virtual

◆ operator=()

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

◆ PartialUpdate()

virtual void * ROOT::Internal::RDF::RActionBase::PartialUpdate ( unsigned int  slot)
pure virtual

This method is invoked to update a partial result during the event loop, right before passing the result to a user-defined callback registered via RResultPtr::RegisterCallback.

Implemented in ROOT::Internal::RDF::RAction< Helper, PrevNode, ColumnTypes_t >, ROOT::Internal::RDF::RJittedAction, and ROOT::Internal::RDF::RVariedAction< Helper, PrevNode, ColumnTypes_t >.

◆ Run()

virtual void ROOT::Internal::RDF::RActionBase::Run ( unsigned int  slot,
Long64_t  entry 
)
pure virtual

◆ SetHasRun()

virtual void ROOT::Internal::RDF::RActionBase::SetHasRun ( )
inlinevirtual

Reimplemented in ROOT::Internal::RDF::RJittedAction.

Definition at line 78 of file RActionBase.hxx.

◆ TriggerChildrenCount()

virtual void ROOT::Internal::RDF::RActionBase::TriggerChildrenCount ( )
pure virtual

Member Data Documentation

◆ fColRegister

RColumnRegister ROOT::Internal::RDF::RActionBase::fColRegister
private

Definition at line 53 of file RActionBase.hxx.

◆ fColumnNames

const ColumnNames_t ROOT::Internal::RDF::RActionBase::fColumnNames
private

Definition at line 49 of file RActionBase.hxx.

◆ fHasRun

bool ROOT::Internal::RDF::RActionBase::fHasRun = false
private

Definition at line 48 of file RActionBase.hxx.

◆ fLoopManager

RLoopManager* ROOT::Internal::RDF::RActionBase::fLoopManager
protected

A raw pointer to the RLoopManager at the root of this functional graph.

Never null: children nodes have shared ownership of parent nodes in the graph.

Definition at line 44 of file RActionBase.hxx.

◆ fNSlots

const unsigned int ROOT::Internal::RDF::RActionBase::fNSlots
private

Number of thread slots used by this node.

Definition at line 47 of file RActionBase.hxx.

◆ fVariations

std::vector<std::string> ROOT::Internal::RDF::RActionBase::fVariations
private

List of systematic variations that affect the result of this action ("nominal" excluded).

Definition at line 51 of file RActionBase.hxx.

Libraries for ROOT::Internal::RDF::RActionBase:

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