Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Detail::RDF::RDefineBase Class Referenceabstract

Definition at line 39 of file RDefineBase.hxx.

Public Member Functions

 RDefineBase (std::string_view name, std::string_view type, const RDFInternal::RColumnRegister &colRegister, RLoopManager &lm, const ColumnNames_t &columnNames, const std::string &variationName="nominal")
 
virtual ~RDefineBase ()
 
virtual void FinaliseSlot (unsigned int slot)=0
 Clean-up operations to be performed at the end of a task.
 
std::string GetName () const
 
virtual const std::type_info & GetTypeId () const =0
 
std::string GetTypeName () const
 
virtual voidGetValuePtr (unsigned int slot)=0
 Return the (type-erased) address of the Define'd value for the given processing slot.
 
const std::vector< std::string > & GetVariations () const
 
virtual RDefineBaseGetVariedDefine (const std::string &variationName)=0
 Return a clone of this Define that works with values in the variationName "universe".
 
virtual void InitSlot (TTreeReader *r, unsigned int slot)=0
 
virtual void MakeVariations (const std::vector< std::string > &variations)=0
 Create clones of this Define that work with values in varied "universes".
 
RDefineBaseoperator= (const RDefineBase &)=delete
 
RDefineBaseoperator= (RDefineBase &&)=delete
 
virtual void Update (unsigned int slot, Long64_t entry)=0
 Update the value at the address returned by GetValuePtr with the content corresponding to the given entry.
 
virtual void Update (unsigned int, const ROOT::RDF::RSampleInfo &)
 Update function to be called once per sample, used if the derived type is a RDefinePerSample.
 

Protected Attributes

RDFInternal::RColumnRegister fColRegister
 
const ROOT::RDF::ColumnNames_t fColumnNames
 
ROOT::RVecB fIsDefine
 The nth flag signals whether the nth input column is a custom column or not.
 
std::vector< Long64_tfLastCheckedEntry
 
RLoopManagerfLoopManager
 
const std::string fName
 The name of the custom column.
 
const std::string fType
 The type of the custom column as a text string.
 
std::string fVariation
 This indicates for what variation this define evaluates values.
 
std::vector< std::string > fVariationDeps
 List of systematic variations that affect the value of this define.
 

#include <ROOT/RDF/RDefineBase.hxx>

Inheritance diagram for ROOT::Detail::RDF::RDefineBase:
[legend]

Constructor & Destructor Documentation

◆ RDefineBase()

RDefineBase::RDefineBase ( std::string_view  name,
std::string_view  type,
const RDFInternal::RColumnRegister colRegister,
RLoopManager lm,
const ColumnNames_t &  columnNames,
const std::string &  variationName = "nominal" 
)

Definition at line 24 of file RDefineBase.cxx.

◆ ~RDefineBase()

RDefineBase::~RDefineBase ( )
virtualdefault

Member Function Documentation

◆ FinaliseSlot()

virtual void ROOT::Detail::RDF::RDefineBase::FinaliseSlot ( unsigned int  slot)
pure virtual

Clean-up operations to be performed at the end of a task.

Implemented in ROOT::Detail::RDF::RDefine< F, ExtraArgsTag >, ROOT::Detail::RDF::RJittedDefine, and ROOT::Detail::RDF::RDefinePerSample< F >.

◆ GetName()

std::string RDefineBase::GetName ( ) const

Definition at line 42 of file RDefineBase.cxx.

◆ GetTypeId()

virtual const std::type_info & ROOT::Detail::RDF::RDefineBase::GetTypeId ( ) const
pure virtual

◆ GetTypeName()

std::string RDefineBase::GetTypeName ( ) const

Definition at line 47 of file RDefineBase.cxx.

◆ GetValuePtr()

virtual void * ROOT::Detail::RDF::RDefineBase::GetValuePtr ( unsigned int  slot)
pure virtual

Return the (type-erased) address of the Define'd value for the given processing slot.

Implemented in ROOT::Detail::RDF::RDefine< F, ExtraArgsTag >, ROOT::Detail::RDF::RDefinePerSample< F >, and ROOT::Detail::RDF::RJittedDefine.

◆ GetVariations()

const std::vector< std::string > & ROOT::Detail::RDF::RDefineBase::GetVariations ( ) const
inline

Definition at line 72 of file RDefineBase.hxx.

◆ GetVariedDefine()

virtual RDefineBase & ROOT::Detail::RDF::RDefineBase::GetVariedDefine ( const std::string &  variationName)
pure virtual

Return a clone of this Define that works with values in the variationName "universe".

Implemented in ROOT::Detail::RDF::RDefinePerSample< F >, ROOT::Detail::RDF::RDefine< F, ExtraArgsTag >, and ROOT::Detail::RDF::RJittedDefine.

◆ InitSlot()

virtual void ROOT::Detail::RDF::RDefineBase::InitSlot ( TTreeReader r,
unsigned int  slot 
)
pure virtual

◆ MakeVariations()

virtual void ROOT::Detail::RDF::RDefineBase::MakeVariations ( const std::vector< std::string > &  variations)
pure virtual

Create clones of this Define that work with values in varied "universes".

Implemented in ROOT::Detail::RDF::RDefinePerSample< F >, ROOT::Detail::RDF::RDefine< F, ExtraArgsTag >, and ROOT::Detail::RDF::RJittedDefine.

◆ operator=() [1/2]

RDefineBase & ROOT::Detail::RDF::RDefineBase::operator= ( const RDefineBase )
delete

◆ operator=() [2/2]

RDefineBase & ROOT::Detail::RDF::RDefineBase::operator= ( RDefineBase &&  )
delete

◆ Update() [1/2]

virtual void ROOT::Detail::RDF::RDefineBase::Update ( unsigned int  slot,
Long64_t  entry 
)
pure virtual

Update the value at the address returned by GetValuePtr with the content corresponding to the given entry.

Implemented in ROOT::Detail::RDF::RDefine< F, ExtraArgsTag >, ROOT::Detail::RDF::RJittedDefine, and ROOT::Detail::RDF::RDefinePerSample< F >.

◆ Update() [2/2]

virtual void ROOT::Detail::RDF::RDefineBase::Update ( unsigned int  ,
const ROOT::RDF::RSampleInfo  
)
inlinevirtual

Update function to be called once per sample, used if the derived type is a RDefinePerSample.

Reimplemented in ROOT::Detail::RDF::RDefinePerSample< F >, ROOT::Detail::RDF::RJittedDefine, and ROOT::Detail::RDF::RDefine< F, ExtraArgsTag >.

Definition at line 68 of file RDefineBase.hxx.

Member Data Documentation

◆ fColRegister

RDFInternal::RColumnRegister ROOT::Detail::RDF::RDefineBase::fColRegister
protected

Definition at line 44 of file RDefineBase.hxx.

◆ fColumnNames

const ROOT::RDF::ColumnNames_t ROOT::Detail::RDF::RDefineBase::fColumnNames
protected

Definition at line 46 of file RDefineBase.hxx.

◆ fIsDefine

ROOT::RVecB ROOT::Detail::RDF::RDefineBase::fIsDefine
protected

The nth flag signals whether the nth input column is a custom column or not.

Definition at line 48 of file RDefineBase.hxx.

◆ fLastCheckedEntry

std::vector<Long64_t> ROOT::Detail::RDF::RDefineBase::fLastCheckedEntry
protected

Definition at line 43 of file RDefineBase.hxx.

◆ fLoopManager

RLoopManager* ROOT::Detail::RDF::RDefineBase::fLoopManager
protected

Definition at line 45 of file RDefineBase.hxx.

◆ fName

const std::string ROOT::Detail::RDF::RDefineBase::fName
protected

The name of the custom column.

Definition at line 41 of file RDefineBase.hxx.

◆ fType

const std::string ROOT::Detail::RDF::RDefineBase::fType
protected

The type of the custom column as a text string.

Definition at line 42 of file RDefineBase.hxx.

◆ fVariation

std::string ROOT::Detail::RDF::RDefineBase::fVariation
protected

This indicates for what variation this define evaluates values.

Definition at line 50 of file RDefineBase.hxx.

◆ fVariationDeps

std::vector<std::string> ROOT::Detail::RDF::RDefineBase::fVariationDeps
protected

List of systematic variations that affect the value of this define.

Definition at line 49 of file RDefineBase.hxx.

Libraries for ROOT::Detail::RDF::RDefineBase:

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