Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::Detail::RooAbsDataFiller Class Referenceabstract

Definition at line 31 of file RooAbsDataHelper.h.

Public Member Functions

 RooAbsDataFiller ()
 
 RooAbsDataFiller (const RooAbsDataFiller &)=delete
 Copy is discouraged.
 
 RooAbsDataFiller (RooAbsDataFiller &&other)
 Move constructor. It transfers ownership of the internal RooAbsData object.
 
 ~RooAbsDataFiller ()=default
 
std::vector< double > & events (std::size_t slot)
 
void ExecImpl (std::size_t nValues, std::vector< double > &vector)
 
void Finalize ()
 Empty all buffers into the dataset/hist to finish processing.
 
virtual RooAbsDataGetAbsData ()=0
 
std::string GetActionName ()
 RDataFrame interface method.
 
void Initialize ()
 RDataFrame interface method.
 
void InitTask (TTreeReader *, unsigned int)
 RDataFrame interface method. No tasks.
 
RooAbsDataFilleroperator= (const RooAbsDataFiller &)=delete
 
RooAbsDataFilleroperator= (RooAbsDataFiller &&)=delete
 

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
 

#include <RooAbsDataHelper.h>

Inheritance diagram for RooFit::Detail::RooAbsDataFiller:
[legend]

Constructor & Destructor Documentation

◆ RooAbsDataFiller() [1/3]

RooFit::Detail::RooAbsDataFiller::RooAbsDataFiller ( )

Definition at line 26 of file RooAbsDataHelper.cxx.

◆ RooAbsDataFiller() [2/3]

RooFit::Detail::RooAbsDataFiller::RooAbsDataFiller ( RooAbsDataFiller &&  other)
inline

Move constructor. It transfers ownership of the internal RooAbsData object.

Definition at line 36 of file RooAbsDataHelper.h.

◆ RooAbsDataFiller() [3/3]

RooFit::Detail::RooAbsDataFiller::RooAbsDataFiller ( const RooAbsDataFiller )
delete

Copy is discouraged.

Use rdataframe.Book<...>(std::move(absDataHelper), ...) instead.

◆ ~RooAbsDataFiller()

RooFit::Detail::RooAbsDataFiller::~RooAbsDataFiller ( )
default

Member Function Documentation

◆ events()

std::vector< double > & RooFit::Detail::RooAbsDataFiller::events ( std::size_t  slot)
inline

Definition at line 58 of file RooAbsDataHelper.h.

◆ ExecImpl()

void RooFit::Detail::RooAbsDataFiller::ExecImpl ( std::size_t  nValues,
std::vector< double > &  vector 
)

Definition at line 122 of file RooAbsDataHelper.cxx.

◆ FillAbsData()

void RooFit::Detail::RooAbsDataFiller::FillAbsData ( const std::vector< double > &  events,
unsigned int  eventSize 
)
protected

Append all events to the internal RooDataSet or increment the bins of a RooDataHist at the given locations.

Parameters
eventsEvents to fill into data. The layout is assumed to be (x, y, z, ...) (x, y, z, ...), (...).
Note
The order of the variables inside events must be consistent with the order given in the constructor. No matching by name is performed.
Parameters
eventSizeSize of a single event.

Definition at line 47 of file RooAbsDataHelper.cxx.

◆ Finalize()

void RooFit::Detail::RooAbsDataFiller::Finalize ( )

Empty all buffers into the dataset/hist to finish processing.

Definition at line 107 of file RooAbsDataHelper.cxx.

◆ GetAbsData()

virtual RooAbsData & RooFit::Detail::RooAbsDataFiller::GetAbsData ( )
pure virtual

◆ GetActionName()

std::string RooFit::Detail::RooAbsDataFiller::GetActionName ( )
inline

RDataFrame interface method.

Definition at line 51 of file RooAbsDataHelper.h.

◆ Initialize()

void RooFit::Detail::RooAbsDataFiller::Initialize ( )

RDataFrame interface method.

Definition at line 32 of file RooAbsDataHelper.cxx.

◆ InitTask()

void RooFit::Detail::RooAbsDataFiller::InitTask ( TTreeReader ,
unsigned int   
)
inline

RDataFrame interface method. No tasks.

Definition at line 49 of file RooAbsDataHelper.h.

◆ operator=() [1/2]

RooAbsDataFiller & RooFit::Detail::RooAbsDataFiller::operator= ( const RooAbsDataFiller )
delete

◆ operator=() [2/2]

RooAbsDataFiller & RooFit::Detail::RooAbsDataFiller::operator= ( RooAbsDataFiller &&  )
delete

Member Data Documentation

◆ _events

std::vector<std::vector<double> > RooFit::Detail::RooAbsDataFiller::_events
protected

Definition at line 66 of file RooAbsDataHelper.h.

◆ _eventSize

std::size_t RooFit::Detail::RooAbsDataFiller::_eventSize
protected

Definition at line 67 of file RooAbsDataHelper.h.

◆ _isDataHist

bool RooFit::Detail::RooAbsDataFiller::_isDataHist = false
protected

Definition at line 71 of file RooAbsDataHelper.h.

◆ _isWeighted

bool RooFit::Detail::RooAbsDataFiller::_isWeighted = false
protected

Definition at line 70 of file RooAbsDataHelper.h.

◆ _mutexDataset

std::mutex RooFit::Detail::RooAbsDataFiller::_mutexDataset
protected

Definition at line 63 of file RooAbsDataHelper.h.

◆ _numInvalid

std::size_t RooFit::Detail::RooAbsDataFiller::_numInvalid = 0
protected

Definition at line 64 of file RooAbsDataHelper.h.

◆ _nValues

std::size_t RooFit::Detail::RooAbsDataFiller::_nValues
protected

Definition at line 68 of file RooAbsDataHelper.h.

Libraries for RooFit::Detail::RooAbsDataFiller:

The documentation for this class was generated from the following files: