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

Definition at line 31 of file RooAbsDataFiller.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.
 
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.
 

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 <RooAbsDataFiller.h>

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

Constructor & Destructor Documentation

◆ RooAbsDataFiller() [1/3]

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

Definition at line 24 of file RooAbsDataFiller.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 RooAbsDataFiller.h.

◆ RooAbsDataFiller() [3/3]

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

Copy is discouraged.

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

Member Function Documentation

◆ ExecImpl()

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

Definition at line 120 of file RooAbsDataFiller.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 45 of file RooAbsDataFiller.cxx.

◆ Finalize()

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

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

Definition at line 105 of file RooAbsDataFiller.cxx.

◆ GetAbsData()

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

◆ GetActionName()

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

RDataFrame interface method.

Definition at line 46 of file RooAbsDataFiller.h.

◆ Initialize()

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

RDataFrame interface method.

Definition at line 30 of file RooAbsDataFiller.cxx.

◆ InitTask()

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

RDataFrame interface method. No tasks.

Definition at line 44 of file RooAbsDataFiller.h.

Member Data Documentation

◆ _events

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

Definition at line 59 of file RooAbsDataFiller.h.

◆ _eventSize

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

Definition at line 60 of file RooAbsDataFiller.h.

◆ _isDataHist

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

Definition at line 64 of file RooAbsDataFiller.h.

◆ _isWeighted

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

Definition at line 63 of file RooAbsDataFiller.h.

◆ _mutexDataset

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

Definition at line 56 of file RooAbsDataFiller.h.

◆ _numInvalid

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

Definition at line 57 of file RooAbsDataFiller.h.

◆ _nValues

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

Definition at line 61 of file RooAbsDataFiller.h.

Libraries for RooFit::Detail::RooAbsDataFiller:

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