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

A wrapper around a concrete RVariation, which forwards all calls to it RJittedVariation is a placeholder that is inserted in the computation graph in place of a RVariation that will be just-in-time compiled.

Jitted code will assign the concrete RVariation to this RJittedVariation before the event-loop starts.

Definition at line 29 of file RJittedVariation.hxx.

Public Member Functions

 RJittedVariation (const std::vector< std::string > &colNames, std::string_view variationName, const std::vector< std::string > &variationTags, std::string_view type, const RColumnRegister &colRegister, RLoopManager &lm, const ColumnNames_t &inputColNames)
 ~RJittedVariation () override
void FinalizeSlot (unsigned int slot) final
 Clean-up operations to be performed at the end of a task.
const std::vector< std::string > & GetColumnNames () const
const std::type_info & GetTypeId () const final
std::string GetTypeName () const
void * GetValuePtr (unsigned int slot, const std::string &column, const std::string &variation) final
 Return the (type-erased) address of the value of one variation of one column (can be safely cast back to a T*).
const std::string & GetVariationName () const
const std::vector< std::string > & GetVariationNames () const
void InitSlot (TTreeReader *r, unsigned int slot) final
void SetVariation (std::unique_ptr< RVariationBase > c)
void Update (unsigned int slot, Long64_t entry) final
 Update the value at the address returned by GetValuePtr with the content corresponding to the given entry.

Protected Attributes

std::vector< std::string > fColNames
 The names of the varied columns.
RColumnRegister fColumnRegister
ColumnNames_t fInputColumns
ROOT::RVecB fIsDefine
 The nth flag signals whether the nth input column is a custom column or not.
std::vector< Long64_tfLastCheckedEntry
RLoopManagerfLoopManager
std::string fType
 The type of the custom column as a text string.
std::string fVariationName
 The name of the systematic variation.
std::vector< std::string > fVariationNames
 The tags of the systematic variation.

Private Attributes

std::unique_ptr< RVariationBasefConcreteVariation = nullptr

#include <ROOT/RDF/RJittedVariation.hxx>

Inheritance diagram for ROOT::Internal::RDF::RJittedVariation:
ROOT::Internal::RDF::RVariationBase

Constructor & Destructor Documentation

◆ RJittedVariation()

ROOT::Internal::RDF::RJittedVariation::RJittedVariation ( const std::vector< std::string > & colNames,
std::string_view variationName,
const std::vector< std::string > & variationTags,
std::string_view type,
const RColumnRegister & colRegister,
RLoopManager & lm,
const ColumnNames_t & inputColNames )
inline

Definition at line 33 of file RJittedVariation.hxx.

◆ ~RJittedVariation()

RJittedVariation::~RJittedVariation ( )
override

Definition at line 17 of file RJittedVariation.cxx.

Member Function Documentation

◆ FinalizeSlot()

void RJittedVariation::FinalizeSlot ( unsigned int slot)
finalvirtual

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

Implements ROOT::Internal::RDF::RVariationBase.

Definition at line 43 of file RJittedVariation.cxx.

◆ GetColumnNames()

const std::vector< std::string > & ROOT::Internal::RDF::RVariationBase::GetColumnNames ( ) const
inherited

Definition at line 51 of file RVariationBase.cxx.

◆ GetTypeId()

const std::type_info & RJittedVariation::GetTypeId ( ) const
finalvirtual

Implements ROOT::Internal::RDF::RVariationBase.

Definition at line 31 of file RJittedVariation.cxx.

◆ GetTypeName()

std::string ROOT::Internal::RDF::RVariationBase::GetTypeName ( ) const
inherited

Definition at line 66 of file RVariationBase.cxx.

◆ GetValuePtr()

void * RJittedVariation::GetValuePtr ( unsigned int slot,
const std::string & column,
const std::string & variation )
finalvirtual

Return the (type-erased) address of the value of one variation of one column (can be safely cast back to a T*).

Implements ROOT::Internal::RDF::RVariationBase.

Definition at line 25 of file RJittedVariation.cxx.

◆ GetVariationName()

const std::string & ROOT::Internal::RDF::RVariationBase::GetVariationName ( ) const
inherited

Definition at line 61 of file RVariationBase.cxx.

◆ GetVariationNames()

const std::vector< std::string > & ROOT::Internal::RDF::RVariationBase::GetVariationNames ( ) const
inherited

Definition at line 56 of file RVariationBase.cxx.

◆ InitSlot()

void RJittedVariation::InitSlot ( TTreeReader * r,
unsigned int slot )
finalvirtual

Implements ROOT::Internal::RDF::RVariationBase.

Definition at line 19 of file RJittedVariation.cxx.

◆ SetVariation()

void ROOT::Internal::RDF::RJittedVariation::SetVariation ( std::unique_ptr< RVariationBase > c)
inline

Definition at line 41 of file RJittedVariation.hxx.

◆ Update()

void RJittedVariation::Update ( unsigned int slot,
Long64_t entry )
finalvirtual

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

Implements ROOT::Internal::RDF::RVariationBase.

Definition at line 37 of file RJittedVariation.cxx.

Member Data Documentation

◆ fColNames

std::vector<std::string> ROOT::Internal::RDF::RVariationBase::fColNames
protectedinherited

The names of the varied columns.

Definition at line 41 of file RVariationBase.hxx.

◆ fColumnRegister

RColumnRegister ROOT::Internal::RDF::RVariationBase::fColumnRegister
protectedinherited

Definition at line 46 of file RVariationBase.hxx.

◆ fConcreteVariation

std::unique_ptr<RVariationBase> ROOT::Internal::RDF::RJittedVariation::fConcreteVariation = nullptr
private

Definition at line 30 of file RJittedVariation.hxx.

◆ fInputColumns

ColumnNames_t ROOT::Internal::RDF::RVariationBase::fInputColumns
protectedinherited

Definition at line 48 of file RVariationBase.hxx.

◆ fIsDefine

ROOT::RVecB ROOT::Internal::RDF::RVariationBase::fIsDefine
protectedinherited

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

Definition at line 50 of file RVariationBase.hxx.

◆ fLastCheckedEntry

std::vector<Long64_t> ROOT::Internal::RDF::RVariationBase::fLastCheckedEntry
protectedinherited

Definition at line 45 of file RVariationBase.hxx.

◆ fLoopManager

RLoopManager* ROOT::Internal::RDF::RVariationBase::fLoopManager
protectedinherited

Definition at line 47 of file RVariationBase.hxx.

◆ fType

std::string ROOT::Internal::RDF::RVariationBase::fType
protectedinherited

The type of the custom column as a text string.

Definition at line 44 of file RVariationBase.hxx.

◆ fVariationName

std::string ROOT::Internal::RDF::RVariationBase::fVariationName
protectedinherited

The name of the systematic variation.

Definition at line 43 of file RVariationBase.hxx.

◆ fVariationNames

std::vector<std::string> ROOT::Internal::RDF::RVariationBase::fVariationNames
protectedinherited

The tags of the systematic variation.

Definition at line 42 of file RVariationBase.hxx.


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