Definition at line 46 of file RDefine.hxx.
Public Member Functions | |
RDefine (const RDefine &)=delete | |
RDefine (std::string_view name, std::string_view type, F expression, const ROOT::RDF::ColumnNames_t &columns, const RDFInternal::RColumnRegister &colRegister, RLoopManager &lm, const std::string &variationName="nominal") | |
~RDefine () | |
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) final |
Return the (type-erased) address of the Define'd value for the given processing slot. | |
RDefineBase & | GetVariedDefine (const std::string &variationName) final |
Return a clone of this Define that works with values in the variationName "universe". | |
void | InitSlot (TTreeReader *r, unsigned int slot) final |
void | MakeVariations (const std::vector< std::string > &variations) final |
Create clones of this Define that work with values in varied "universes". | |
RDefine & | operator= (const RDefine &)=delete |
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. | |
void | Update (unsigned int, const ROOT::RDF::RSampleInfo &) final |
Update function to be called once per sample, used if the derived type is a RDefinePerSample. | |
Public Member Functions inherited from ROOT::Detail::RDF::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") | |
virtual | ~RDefineBase () |
std::string | GetName () const |
std::string | GetTypeName () const |
const std::vector< std::string > & | GetVariations () const |
RDefineBase & | operator= (const RDefineBase &)=delete |
RDefineBase & | operator= (RDefineBase &&)=delete |
Private Types | |
using | ColumnTypes_t = RDFInternal::RemoveFirstTwoParametersIf_t< std::is_same< ExtraArgsTag, SlotAndEntryTag >::value, ColumnTypesTmp_t > |
using | ColumnTypesTmp_t = RDFInternal::RemoveFirstParameterIf_t< std::is_same< ExtraArgsTag, SlotTag >::value, FunParamTypes_t > |
using | FunParamTypes_t = typename CallableTraits< F >::arg_types |
using | NoneTag = ExtraArgsForDefine::None |
using | ret_type = typename CallableTraits< F >::ret_type |
using | SlotAndEntryTag = ExtraArgsForDefine::SlotAndEntry |
using | SlotTag = ExtraArgsForDefine::Slot |
using | TypeInd_t = std::make_index_sequence< ColumnTypes_t::list_size > |
using | ValuesPerSlot_t = std::conditional_t< std::is_same< ret_type, bool >::value, std::deque< ret_type >, std::vector< ret_type > > |
Private Member Functions | |
template<typename... ColTypes, std::size_t... S> | |
void | UpdateHelper (unsigned int slot, Long64_t entry, TypeList< ColTypes... >, std::index_sequence< S... >, NoneTag) |
template<typename... ColTypes, std::size_t... S> | |
void | UpdateHelper (unsigned int slot, Long64_t entry, TypeList< ColTypes... >, std::index_sequence< S... >, SlotAndEntryTag) |
template<typename... ColTypes, std::size_t... S> | |
void | UpdateHelper (unsigned int slot, Long64_t entry, TypeList< ColTypes... >, std::index_sequence< S... >, SlotTag) |
Private Attributes | |
F | fExpression |
ValuesPerSlot_t | fLastResults |
std::vector< std::array< RColumnReaderBase *, ColumnTypes_t::list_size > > | fValues |
Column readers per slot and per input column. | |
std::unordered_map< std::string, std::unique_ptr< RDefineBase > > | fVariedDefines |
Define objects corresponding to systematic variations other than nominal for this defined column. | |
Additional Inherited Members | |
Protected Attributes inherited from ROOT::Detail::RDF::RDefineBase | |
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_t > | fLastCheckedEntry |
RLoopManager * | fLoopManager |
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/RDefine.hxx>
|
private |
Definition at line 55 of file RDefine.hxx.
|
private |
Definition at line 53 of file RDefine.hxx.
|
private |
Definition at line 52 of file RDefine.hxx.
|
private |
Definition at line 48 of file RDefine.hxx.
|
private |
Definition at line 58 of file RDefine.hxx.
|
private |
Definition at line 50 of file RDefine.hxx.
|
private |
Definition at line 49 of file RDefine.hxx.
|
private |
Definition at line 57 of file RDefine.hxx.
|
private |
Definition at line 60 of file RDefine.hxx.
|
inline |
Definition at line 98 of file RDefine.hxx.
|
delete |
|
inline |
Definition at line 109 of file RDefine.hxx.
|
inlinefinalvirtual |
Clean-up operations to be performed at the end of a task.
Implements ROOT::Detail::RDF::RDefineBase.
Definition at line 139 of file RDefine.hxx.
|
inlinefinalvirtual |
Implements ROOT::Detail::RDF::RDefineBase.
Definition at line 136 of file RDefine.hxx.
|
inlinefinalvirtual |
Return the (type-erased) address of the Define'd value for the given processing slot.
Implements ROOT::Detail::RDF::RDefineBase.
Definition at line 119 of file RDefine.hxx.
|
inlinefinalvirtual |
Return a clone of this Define that works with values in the variationName "universe".
Implements ROOT::Detail::RDF::RDefineBase.
Definition at line 168 of file RDefine.hxx.
|
inlinefinalvirtual |
Implements ROOT::Detail::RDF::RDefineBase.
Definition at line 111 of file RDefine.hxx.
|
inlinefinalvirtual |
Create clones of this Define that work with values in varied "universes".
Implements ROOT::Detail::RDF::RDefineBase.
Definition at line 148 of file RDefine.hxx.
|
delete |
|
inlinefinalvirtual |
Update the value at the address returned by GetValuePtr with the content corresponding to the given entry.
Implements ROOT::Detail::RDF::RDefineBase.
Definition at line 125 of file RDefine.hxx.
|
inlinefinalvirtual |
Update function to be called once per sample, used if the derived type is a RDefinePerSample.
Reimplemented from ROOT::Detail::RDF::RDefineBase.
Definition at line 134 of file RDefine.hxx.
|
inlineprivate |
Definition at line 74 of file RDefine.hxx.
|
inlineprivate |
Definition at line 91 of file RDefine.hxx.
|
inlineprivate |
Definition at line 82 of file RDefine.hxx.
|
private |
Definition at line 63 of file RDefine.hxx.
|
private |
Definition at line 64 of file RDefine.hxx.
|
private |
Column readers per slot and per input column.
Definition at line 67 of file RDefine.hxx.
|
private |
Define objects corresponding to systematic variations other than nominal for this defined column.
The map key is the full variation name, e.g. "pt:up".
Definition at line 71 of file RDefine.hxx.