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

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

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

Enables multi-threaded filling.

Definition at line 37 of file THistConcurrentFill.hxx.

Public Types

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

Public Member Functions

 THistConcurrentFiller (THistConcurrentFillManager< HIST, SIZE > &manager)
 
void FillN (const std::span< CoordArray_t > xN, const std::span< Weight_t > weightN)
 Thread-specific HIST::FillN(). More...
 
void FillN (const std::span< CoordArray_t > xN)
 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::THistBufferedFillBase< THistConcurrentFiller< HIST, SIZE >, HIST, SIZE >
 THistBufferedFillBase ()
 
 ~THistBufferedFillBase ()
 
void Fill (const CoordArray_t &x, Weight_t weight=1.)
 
std::span< CoordArray_tGetCoords () const
 
std::span< Weight_tGetWeights () const
 
THistConcurrentFiller< HIST, SIZE > & toDerived ()
 
const THistConcurrentFiller< HIST, SIZE > & toDerived () const
 

Static Public Member Functions

static constexpr int GetNDim ()
 

Private Attributes

THistConcurrentFillManager< HIST, SIZE > & fManager
 

#include <ROOT/THistConcurrentFill.hxx>

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

Member Typedef Documentation

◆ CoordArray_t

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

Definition at line 41 of file THistConcurrentFill.hxx.

◆ Weight_t

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

Definition at line 42 of file THistConcurrentFill.hxx.

Constructor & Destructor Documentation

◆ THistConcurrentFiller()

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

Definition at line 44 of file THistConcurrentFill.hxx.

Member Function Documentation

◆ FillN() [1/2]

template<class HIST , int SIZE>
void ROOT::Experimental::THistConcurrentFiller< 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 THistConcurrentFill.hxx.

◆ FillN() [2/2]

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

Thread-specific HIST::FillN().

Definition at line 56 of file THistConcurrentFill.hxx.

◆ Flush()

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

The buffer is full, flush it out.

Definition at line 59 of file THistConcurrentFill.hxx.

◆ GetHist()

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

Definition at line 61 of file THistConcurrentFill.hxx.

◆ GetNDim()

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

Definition at line 64 of file THistConcurrentFill.hxx.

◆ operator HIST &()

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

Definition at line 62 of file THistConcurrentFill.hxx.

Member Data Documentation

◆ fManager

template<class HIST , int SIZE>
THistConcurrentFillManager<HIST, SIZE>& ROOT::Experimental::THistConcurrentFiller< HIST, SIZE >::fManager
private

Definition at line 38 of file THistConcurrentFill.hxx.

Libraries for ROOT::Experimental::THistConcurrentFiller< HIST, SIZE >:
[legend]

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