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 121 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. | |
| auto | CallFinalizeTask (unsigned int slot) -> decltype(std::declval< T >().FinalizeTask(slot)) |
| void | CallFinalizeTask (unsigned int, Args...) |
| RooAbsDataHelper< DataSet_t > | CallMakeNew (void *typeErasedResSharedPtr, std::string_view variation="nominal") |
| void * | CallPartialUpdate (...) |
| auto | CallPartialUpdate (unsigned int slot) -> decltype(std::declval< H >().PartialUpdate(slot),(void *)(nullptr)) |
| std::vector< double > & | events (std::size_t slot) |
| template<typename... ColumnTypes> | |
| void | Exec (unsigned int slot, ColumnTypes... values) |
| Method that RDataFrame calls to pass a new event. | |
| void | ExecImpl (std::size_t nValues, std::vector< double > &vector) |
| void | Finalize () |
| Empty all buffers into the dataset/hist to finish processing. | |
| DataSet_t & | GetAbsData () override |
| std::string | GetActionName () |
| RDataFrame interface method. | |
| virtual std::unique_ptr< RMergeableValueBase > | GetMergeableValue () const |
| std::shared_ptr< DataSet_t > | GetResultPtr () const |
| Return internal dataset/hist. | |
| virtual ROOT::RDF::SampleCallback_t | GetSampleCallback () |
| Override this method to register a callback that is executed before the processing a new data sample starts. | |
| void | Initialize () |
| RDataFrame interface method. | |
| void | InitTask (TTreeReader *, unsigned int) |
| RDataFrame interface method. No tasks. | |
Protected Member Functions | |
| 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 | |
| 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 |
Private Attributes | |
| std::shared_ptr< DataSet_t > | _dataset |
#include <RooAbsDataHelper.h>
Definition at line 124 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 131 of file RooAbsDataHelper.h.
|
inlineinherited |
Definition at line 44 of file RActionImpl.hxx.
|
inlineinherited |
Definition at line 50 of file RActionImpl.hxx.
|
inlineinherited |
Definition at line 64 of file RActionImpl.hxx.
|
inlineinherited |
Definition at line 59 of file RActionImpl.hxx.
|
inlineinherited |
Definition at line 53 of file RActionImpl.hxx.
|
inlineinherited |
Definition at line 58 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 143 of file RooAbsDataHelper.h.
|
inherited |
Definition at line 122 of file RooAbsDataHelper.cxx.
|
protectedinherited |
Append all events to the internal RooDataSet or increment the bins of a RooDataHist at the given locations.
| events | Events to fill into data. The layout is assumed to be (x, y, z, ...) (x, y, z, ...), (...). |
events must be consistent with the order given in the constructor. No matching by name is performed. | eventSize | Size of a single event. |
Definition at line 47 of file RooAbsDataHelper.cxx.
|
inherited |
Empty all buffers into the dataset/hist to finish processing.
Definition at line 107 of file RooAbsDataHelper.cxx.
|
inlineoverridevirtual |
Implements RooFit::Detail::RooAbsDataFiller.
Definition at line 153 of file RooAbsDataHelper.h.
|
inlineinherited |
RDataFrame interface method.
Definition at line 51 of file RooAbsDataHelper.h.
|
inlinevirtualinherited |
Definition at line 79 of file RActionImpl.hxx.
|
inline |
Return internal dataset/hist.
Definition at line 136 of file RooAbsDataHelper.h.
|
inlinevirtualinherited |
Override this method to register a callback that is executed before the processing a new data sample starts.
The callback will be invoked in the same conditions as with DefinePerSample().
Definition at line 86 of file RActionImpl.hxx.
|
inherited |
RDataFrame interface method.
Definition at line 32 of file RooAbsDataHelper.cxx.
|
inlineinherited |
RDataFrame interface method. No tasks.
Definition at line 49 of file RooAbsDataHelper.h.
|
private |
Definition at line 156 of file RooAbsDataHelper.h.
|
protectedinherited |
Definition at line 66 of file RooAbsDataHelper.h.
|
protectedinherited |
Definition at line 67 of file RooAbsDataHelper.h.
Definition at line 71 of file RooAbsDataHelper.h.
Definition at line 70 of file RooAbsDataHelper.h.
|
protectedinherited |
Definition at line 63 of file RooAbsDataHelper.h.
|
protectedinherited |
Definition at line 64 of file RooAbsDataHelper.h.
|
protectedinherited |
Definition at line 68 of file RooAbsDataHelper.h.