13#ifndef ROOABSDATAHELPER
14#define ROOABSDATAHELPER
53template <
class DataSet_t>
63 template <
typename... Args_t>
75 template <
typename... ColumnTypes>
76 void Exec(
unsigned int slot, ColumnTypes... values)
79 for (
auto &&val : {
static_cast<double>(values)...}) {
80 vector.push_back(val);
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.
RooAbsData & 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.
std::vector< std::vector< double > > _events
void ExecImpl(std::size_t nValues, std::vector< double > &vector)