Base class for all histogram fillers.
More...
#include <HistogramFiller.h>
Base class for all histogram fillers.
Definition at line 43 of file HistogramFiller.h.
◆ HistogramFiller() [1/2]
◆ HistogramFiller() [2/2]
◆ ~HistogramFiller()
virtual Monitored::HistogramFiller::~HistogramFiller |
( |
| ) |
|
|
inlinevirtual |
◆ fill() [1/2]
◆ fill() [2/2]
template<class H , typename W , typename C , typename ... Ms>
unsigned Monitored::HistogramFiller::fill |
( |
W |
weight, |
|
|
C |
cut, |
|
|
const Ms &... |
m |
|
) |
| const |
|
inlineprotected |
Fill histogram from IMonitoredVariable.
Supports arbitrary dimensions and double/string representation.
- Template Parameters
-
H | histogram type (TH1, TH2, ...) |
- Parameters
-
Definition at line 184 of file HistogramFiller.h.
185 auto hist = this->histogram<H>();
◆ getCutMaskFunc()
Definition at line 155 of file HistogramFiller.h.
156 std::function<
bool(
size_t)> cutMaskValue = [] (size_t){
return true; };
158 if (
mask !=
nullptr ) {
163 return std::make_pair(0, [](
size_t){
return false; });
167 return std::make_pair(
maskSize, [
mask](
size_t i){
return static_cast<bool>(
mask->get(
i)); });
170 return std::make_pair(
maskSize, cutMaskValue);
◆ getLock()
const std::unique_lock<std::mutex> Monitored::HistogramFiller::getLock |
( |
| ) |
const |
|
inline |
◆ histogram()
template<class H >
H* Monitored::HistogramFiller::histogram |
( |
| ) |
const |
|
inlineprotected |
◆ histogramCutMaskName()
const std::string& Monitored::HistogramFiller::histogramCutMaskName |
( |
| ) |
const |
|
inline |
◆ histogramVariablesNames()
const std::vector<std::string>& Monitored::HistogramFiller::histogramVariablesNames |
( |
| ) |
const |
|
inline |
◆ histogramWeightName()
const std::string& Monitored::HistogramFiller::histogramWeightName |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ touch()
void Monitored::HistogramFiller::touch |
( |
| ) |
const |
|
inline |
◆ m_histDef
std::shared_ptr<HistogramDef> Monitored::HistogramFiller::m_histDef |
|
protected |
◆ m_histogramProvider
◆ m_lock
std::mutex Monitored::HistogramFiller::m_lock |
|
mutableprotected |
The documentation for this class was generated from the following file:
void doFill(H *hist, W weight, size_t i, const M &m1, const Ms &... m)
Perform (arbitrary dimension) histogram fill with weight.