This is a helper for an RDataFrame action, which fills RooFit data classes.
DataSet_t | Either RooDataSet or RooDataHist. |
To construct RooDataSet / RooDataHist within RDataFrame
All arguments passed to are forwarded to RooDataSet::RooDataSet() / RooDataHist::RooDataHist().
Definition at line 54 of file RooAbsDataHelper.h.
Public Types | |
using | Result_t = DataSet_t |
Public Member Functions | |
template<typename... Args_t> | |
RooAbsDataHelper (Args_t &&...args) | |
Construct a helper to create RooDataSet/RooDataHist. | |
template<typename... ColumnTypes> | |
void | Exec (unsigned int slot, ColumnTypes... values) |
Method that RDataFrame calls to pass a new event. | |
RooAbsData & | GetAbsData () override |
std::shared_ptr< DataSet_t > | GetResultPtr () const |
Return internal dataset/hist. | |
Public Member Functions inherited from RooFit::Detail::RooAbsDataFiller | |
RooAbsDataFiller () | |
RooAbsDataFiller (const RooAbsDataFiller &)=delete | |
Copy is discouraged. | |
RooAbsDataFiller (RooAbsDataFiller &&other) | |
Move constructor. It transfers ownership of the internal RooAbsData object. | |
void | ExecImpl (std::size_t nValues, std::vector< double > &vector) |
void | Finalize () |
Empty all buffers into the dataset/hist to finish processing. | |
std::string | GetActionName () |
RDataFrame interface method. | |
void | Initialize () |
RDataFrame interface method. | |
void | InitTask (TTreeReader *, unsigned int) |
RDataFrame interface method. No tasks. | |
Public Member Functions inherited from ROOT::Detail::RDF::RActionImpl< RooAbsDataHelper< DataSet_t > > | |
virtual | ~RActionImpl ()=default |
auto | CallFinalizeTask (unsigned int slot) -> decltype(std::declval< T >().FinalizeTask(slot)) |
void | CallFinalizeTask (unsigned int, Args...) |
RooAbsDataHelper< DataSet_t > | CallMakeNew (void *, Args...) |
auto | CallMakeNew (void *typeErasedResSharedPtr) -> decltype(std::declval< T >().MakeNew(typeErasedResSharedPtr)) |
void * | CallPartialUpdate (...) |
auto | CallPartialUpdate (unsigned int slot) -> decltype(std::declval< H >().PartialUpdate(slot),(void *)(nullptr)) |
virtual std::unique_ptr< RMergeableValueBase > | GetMergeableValue () const |
virtual ROOT::RDF::SampleCallback_t | GetSampleCallback () |
Override this method to register a callback that is executed before the processing a new data sample starts. | |
Private Attributes | |
std::shared_ptr< DataSet_t > | _dataset |
Additional Inherited Members | |
Protected Member Functions inherited from RooFit::Detail::RooAbsDataFiller | |
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 locations. | |
Protected Attributes inherited from RooFit::Detail::RooAbsDataFiller | |
std::vector< std::vector< double > > | _events |
std::size_t | _eventSize |
bool | _isDataHist = false |
bool | _isWeighted = false |
std::mutex | _mutexDataset |
std::size_t | _numInvalid = 0 |
std::size_t | _nValues |
#include <RooAbsDataHelper.h>
using RooAbsDataHelper< DataSet_t >::Result_t = DataSet_t |
Definition at line 57 of file RooAbsDataHelper.h.
|
inline |
Construct a helper to create RooDataSet/RooDataHist.
Args_t | Parameter pack of arguments. |
args | Constructor arguments for RooDataSet::RooDataSet() or RooDataHist::RooDataHist(). All arguments will be forwarded as they are. |
Definition at line 64 of file RooAbsDataHelper.h.
|
inline |
Method that RDataFrame calls to pass a new event.
slot | When IMT is used, this is a number in the range [0, nSlots) to fill lock free. |
values | x, y, z, ... coordinates of the event. |
Definition at line 76 of file RooAbsDataHelper.h.
|
inlineoverridevirtual |
Implements RooFit::Detail::RooAbsDataFiller.
Definition at line 86 of file RooAbsDataHelper.h.
|
inline |
Return internal dataset/hist.
Definition at line 69 of file RooAbsDataHelper.h.
|
private |
Definition at line 89 of file RooAbsDataHelper.h.