11#ifndef ROOT_RDF_RDEFINEPERSAMPLE
12#define ROOT_RDF_RDEFINEPERSAMPLE
35 std::conditional_t<std::is_same<RetType_t, bool>::value, std::deque<RetType_t>, std::vector<RetType_t>>;
43 fLastResults(lm.GetNSlots() * RDFInternal::CacheLineStep<RetType_t>())
45 fLoopManager->Book(
this);
47 fLoopManager->AddSampleCallback(
this, std::move(callUpdate));
58 return static_cast<void *
>(&fLastResults[slot * RDFInternal::CacheLineStep<RetType_t>()]);
69 fLastResults[slot * RDFInternal::CacheLineStep<RetType_t>()] = fExpression(slot,
id);
83 R__ASSERT(
false &&
"This should never be called");
RDefinePerSample & operator=(const RDefinePerSample &)=delete
const std::type_info & GetTypeId() const
RDefinePerSample(const RDefinePerSample &)=delete
void InitSlot(TTreeReader *, unsigned int) final
void Update(unsigned int slot, const ROOT::RDF::RSampleInfo &id) final
Update the value at the address returned by GetValuePtr with the content corresponding to the given e...
ValuesPerSlot_t fLastResults
RDefineBase & GetVariedDefine(const std::string &) final
Return a clone of this Define that works with values in the variationName "universe".
void * GetValuePtr(unsigned int slot) final
Return the (type-erased) address of the Define'd value for the given processing slot.
typename CallableTraits< F >::ret_type RetType_t
RDefinePerSample(std::string_view name, std::string_view type, F expression, RLoopManager &lm)
void MakeVariations(const std::vector< std::string > &) final
Create clones of this Define that work with values in varied "universes".
void FinaliseSlot(unsigned int) final
Clean-up operations to be performed at the end of a task.
void Update(unsigned int, Long64_t) final
Update the value at the address returned by GetValuePtr with the content corresponding to the given e...
std::conditional_t< std::is_same< RetType_t, bool >::value, std::deque< RetType_t >, std::vector< RetType_t > > ValuesPerSlot_t
The head node of a RDF computation graph.
This type represents a sample identifier, to be used in conjunction with RDataFrame features such as ...
A simple, robust and fast interface to read values from ROOT columnar datasets such as TTree,...
ROOT type_traits extensions.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Extract types from the signature of a callable object. See CallableTraits.