ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
ROOT::THistConcurrentFillManager< HIST, SIZE > Class Template Reference

template<class HIST, int SIZE = 1024>
class ROOT::THistConcurrentFillManager< HIST, SIZE >

Manages the synchronization of calls to FillN().

The HIST template can be a THist instance. This class hands out THistConcurrentFiller objects that can concurrently fill the histogram. They buffer calls to Fill() until the buffer is full, and then swap the buffer with that of the THistConcurrentFillManager. The manager than fills the histogram.

Definition at line 25 of file THistConcurrentFill.h.

Public Types

using Hist_t = HIST
 
using Coord_t = typename HIST::Coord_t
 
using Weight_t = typename HIST::Weight_t
 

Public Member Functions

 THistConcurrentFillManager (HIST &hist)
 
THistConcurrentFiller< HIST, SIZEMakeFiller ()
 
void FillN (const std::array_view< Coord_t > xN, const std::array_view< Weight_t > weightN)
 Thread-specific HIST::FillN(). More...
 
void FillN (const std::array_view< Coord_t > xN)
 Thread-specific HIST::FillN(). More...
 

Private Attributes

HIST & fHist
 
std::mutex fFillMutex
 

Friends

class THistConcurrentFiller< HIST, SIZE >
 

#include <ROOT/THistConcurrentFill.h>

Member Typedef Documentation

template<class HIST, int SIZE = 1024>
using ROOT::THistConcurrentFillManager< HIST, SIZE >::Coord_t = typename HIST::Coord_t

Definition at line 87 of file THistConcurrentFill.h.

template<class HIST, int SIZE = 1024>
using ROOT::THistConcurrentFillManager< HIST, SIZE >::Hist_t = HIST

Definition at line 86 of file THistConcurrentFill.h.

template<class HIST, int SIZE = 1024>
using ROOT::THistConcurrentFillManager< HIST, SIZE >::Weight_t = typename HIST::Weight_t

Definition at line 88 of file THistConcurrentFill.h.

Constructor & Destructor Documentation

template<class HIST, int SIZE = 1024>
ROOT::THistConcurrentFillManager< HIST, SIZE >::THistConcurrentFillManager ( HIST &  hist)
inline

Definition at line 95 of file THistConcurrentFill.h.

Member Function Documentation

template<class HIST, int SIZE = 1024>
void ROOT::THistConcurrentFillManager< HIST, SIZE >::FillN ( const std::array_view< Coord_t xN,
const std::array_view< Weight_t weightN 
)
inline

Thread-specific HIST::FillN().

Definition at line 103 of file THistConcurrentFill.h.

Referenced by ROOT::THistConcurrentFiller< HIST, SIZE >::FillN(), and ROOT::THistConcurrentFiller< HIST, SIZE >::Flush().

template<class HIST, int SIZE = 1024>
void ROOT::THistConcurrentFillManager< HIST, SIZE >::FillN ( const std::array_view< Coord_t xN)
inline

Thread-specific HIST::FillN().

Definition at line 110 of file THistConcurrentFill.h.

template<class HIST, int SIZE = 1024>
THistConcurrentFiller<HIST, SIZE> ROOT::THistConcurrentFillManager< HIST, SIZE >::MakeFiller ( )
inline

Definition at line 98 of file THistConcurrentFill.h.

Friends And Related Function Documentation

template<class HIST, int SIZE = 1024>
friend class THistConcurrentFiller< HIST, SIZE >
friend

Definition at line 84 of file THistConcurrentFill.h.

Member Data Documentation

template<class HIST, int SIZE = 1024>
std::mutex ROOT::THistConcurrentFillManager< HIST, SIZE >::fFillMutex
private

Definition at line 92 of file THistConcurrentFill.h.

template<class HIST, int SIZE = 1024>
HIST& ROOT::THistConcurrentFillManager< HIST, SIZE >::fHist
private

Definition at line 91 of file THistConcurrentFill.h.


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