Logo ROOT   6.18/05
Reference Guide
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE > Class Template Reference

template<class HIST, int SIZE>
class ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >

Buffers a thread's Fill calls and submits them to the RHistConcurrentFillManager.

Enables multi-threaded filling.

Definition at line 37 of file RHistConcurrentFill.hxx.

Public Types

using CoordArray_t = typename HIST::CoordArray_t
 
using Weight_t = typename HIST::Weight_t
 
- Public Types inherited from ROOT::Experimental::Internal::RHistBufferedFillBase< RHistConcurrentFiller< HIST, SIZE >, HIST, SIZE >
using CoordArray_t = typename HIST::CoordArray_t
 
using Weight_t = typename HIST::Weight_t
 

Public Member Functions

 RHistConcurrentFiller (RHistConcurrentFillManager< HIST, SIZE > &manager)
 
void FillN (const std::span< CoordArray_t > xN)
 Thread-specific HIST::FillN(). More...
 
void FillN (const std::span< CoordArray_t > xN, const std::span< Weight_t > weightN)
 Thread-specific HIST::FillN(). More...
 
void Flush ()
 The buffer is full, flush it out. More...
 
HIST & GetHist ()
 
 operator HIST & ()
 
- Public Member Functions inherited from ROOT::Experimental::Internal::RHistBufferedFillBase< RHistConcurrentFiller< HIST, SIZE >, HIST, SIZE >
 RHistBufferedFillBase ()
 
 ~RHistBufferedFillBase ()
 
void Fill (const CoordArray_t &x, Weight_t weight=1.)
 
std::span< CoordArray_tGetCoords () const
 
std::span< Weight_tGetWeights () const
 
RHistConcurrentFiller< HIST, SIZE > & toDerived ()
 
const RHistConcurrentFiller< HIST, SIZE > & toDerived () const
 

Static Public Member Functions

static constexpr int GetNDim ()
 

Private Attributes

RHistConcurrentFillManager< HIST, SIZE > & fManager
 

#include <ROOT/RHistConcurrentFill.hxx>

Inheritance diagram for ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >:
[legend]

Member Typedef Documentation

◆ CoordArray_t

template<class HIST , int SIZE>
using ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::CoordArray_t = typename HIST::CoordArray_t

Definition at line 41 of file RHistConcurrentFill.hxx.

◆ Weight_t

template<class HIST , int SIZE>
using ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::Weight_t = typename HIST::Weight_t

Definition at line 42 of file RHistConcurrentFill.hxx.

Constructor & Destructor Documentation

◆ RHistConcurrentFiller()

template<class HIST , int SIZE>
ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::RHistConcurrentFiller ( RHistConcurrentFillManager< HIST, SIZE > &  manager)
inline

Definition at line 44 of file RHistConcurrentFill.hxx.

Member Function Documentation

◆ FillN() [1/2]

template<class HIST , int SIZE>
void ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::FillN ( const std::span< CoordArray_t xN)
inline

Thread-specific HIST::FillN().

Definition at line 56 of file RHistConcurrentFill.hxx.

◆ FillN() [2/2]

template<class HIST , int SIZE>
void ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::FillN ( const std::span< CoordArray_t xN,
const std::span< Weight_t weightN 
)
inline

Thread-specific HIST::FillN().

Definition at line 50 of file RHistConcurrentFill.hxx.

◆ Flush()

template<class HIST , int SIZE>
void ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::Flush ( )
inline

The buffer is full, flush it out.

Definition at line 59 of file RHistConcurrentFill.hxx.

◆ GetHist()

template<class HIST , int SIZE>
HIST & ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::GetHist ( )
inline

Definition at line 61 of file RHistConcurrentFill.hxx.

◆ GetNDim()

template<class HIST , int SIZE>
static constexpr int ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::GetNDim ( )
inlinestaticconstexpr

Definition at line 64 of file RHistConcurrentFill.hxx.

◆ operator HIST &()

template<class HIST , int SIZE>
ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::operator HIST & ( )
inline

Definition at line 62 of file RHistConcurrentFill.hxx.

Member Data Documentation

◆ fManager

template<class HIST , int SIZE>
RHistConcurrentFillManager<HIST, SIZE>& ROOT::Experimental::RHistConcurrentFiller< HIST, SIZE >::fManager
private

Definition at line 38 of file RHistConcurrentFill.hxx.


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