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::type_info & GetTypeId () const final
 
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*).
 
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.
 
- Public Member Functions inherited from ROOT::Internal::RDF::RVariationBase
 RVariationBase (const RVariationBase &)=delete
 
 RVariationBase (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)
 
 RVariationBase (RVariationBase &&)=default
 
virtual ~RVariationBase ()
 
const std::vector< std::string > & GetColumnNames () const
 
std::string GetTypeName () const
 
const std::vector< std::string > & GetVariationNames () const
 
RVariationBaseoperator= (const RVariationBase &)=delete
 
RVariationBaseoperator= (RVariationBase &&)=default
 

Private Attributes

std::unique_ptr< RVariationBasefConcreteVariation = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from ROOT::Internal::RDF::RVariationBase
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::vector< std::string > fVariationNames
 The names of the systematic variation.
 

#include <ROOT/RDF/RJittedVariation.hxx>

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

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.

◆ GetTypeId()

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

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

Definition at line 31 of file RJittedVariation.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.

◆ 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

◆ fConcreteVariation

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

Definition at line 30 of file RJittedVariation.hxx.

Libraries for ROOT::Internal::RDF::RJittedVariation:

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