13#ifndef RooFit_RooFitCore_RooAbsDataHelper_h
14#define RooFit_RooFitCore_RooAbsDataHelper_h
53 void ExecImpl(std::size_t nValues, std::vector<double> &vector);
81template <
typename Helper>
117template <
class DataSet_t>
127 template <
typename... Args_t>
139 template <
typename... ColumnTypes>
140 void Exec(
unsigned int slot, ColumnTypes... values)
142 std::vector<double> &vector =
_events[slot];
143 for (
auto &&val : {
static_cast<double>(values)...}) {
144 vector.push_back(val);
147 ExecImpl(
sizeof...(values), vector);
Base class for action helpers, see RInterface::Book() for more information.
This is a helper for an RDataFrame action, which fills RooFit data classes.
void Exec(unsigned int slot, ColumnTypes... values)
Method that RDataFrame calls to pass a new event.
DataSet_t & GetAbsData() override
RooAbsDataHelper(Args_t &&...args)
Construct a helper to create RooDataSet/RooDataHist.
std::shared_ptr< DataSet_t > GetResultPtr() const
Return internal dataset/hist.
std::shared_ptr< DataSet_t > _dataset
Abstract base class for binned and unbinned datasets.
RooAbsDataFiller(RooAbsDataFiller &&other)
Move constructor. It transfers ownership of the internal RooAbsData object.
~RooAbsDataFiller()=default
RooAbsDataFiller & operator=(RooAbsDataFiller &&)=delete
virtual RooAbsData & GetAbsData()=0
void Initialize()
RDataFrame interface method.
std::vector< double > & events(std::size_t slot)
void FillAbsData(const std::vector< double > &events, unsigned int eventSize)
Append all events to the internal RooDataSet or increment the bins of a RooDataHist at the given loca...
std::vector< std::vector< double > > _events
void Finalize()
Empty all buffers into the dataset/hist to finish processing.
RooAbsDataFiller & operator=(const RooAbsDataFiller &)=delete
void InitTask(TTreeReader *, unsigned int)
RDataFrame interface method. No tasks.
std::string GetActionName()
RDataFrame interface method.
void ExecImpl(std::size_t nValues, std::vector< double > &vector)
RooAbsDataFiller(const RooAbsDataFiller &)=delete
Copy is discouraged.
A simple, robust and fast interface to read values from ROOT columnar datasets such as TTree,...
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...