Base class for all histogram fillers.
More...
#include <HistogramFiller.h>
|
| template<class H> |
| H * | histogram () const |
| template<class H, typename W, typename C, typename ... Ms> |
| unsigned | fill (W weight, C cut, const Ms &... m) const |
| | Fill histogram from IMonitoredVariable.
|
Base class for all histogram fillers.
Definition at line 44 of file HistogramFiller.h.
◆ HistogramFiller() [1/2]
Default constructor.
- Parameters
-
| histDef | Histogram definition of ROOT object |
Definition at line 51 of file HistogramFiller.h.
std::shared_ptr< HistogramDef > m_histDef
std::shared_ptr< IHistogramProvider > m_histogramProvider
◆ HistogramFiller() [2/2]
◆ ~HistogramFiller()
| virtual Monitored::HistogramFiller::~HistogramFiller |
( |
| ) |
|
|
inlinevirtual |
◆ fill() [1/2]
| virtual unsigned Monitored::HistogramFiller::fill |
( |
const VariablesPack & | | ) |
const |
|
pure virtual |
Method that actually fills the ROOT object.
- Returns
- number of fills performed
Implemented in Monitored::CumulativeHistogramFiller1D, Monitored::HistogramFiller1D, Monitored::HistogramFiller2DGeneric< H >, Monitored::HistogramFiller2DGeneric< TH2 >, Monitored::HistogramFiller2DGeneric< TProfile >, Monitored::HistogramFiller2DProfile, Monitored::HistogramFillerEfficiency, Monitored::HistogramFillerRebinableAxis< HistogramFiller1D, Axis::X >, Monitored::HistogramFillerRebinableAxis< HistogramFiller2D, Axis::X >, Monitored::HistogramFillerRebinableAxis< HistogramFiller2D, Axis::Y >, Monitored::HistogramFillerRebinableAxis< HistogramFiller2DProfile, Axis::X >, Monitored::HistogramFillerRebinableAxis< HistogramFillerProfile, Axis::X >, Monitored::HistogramFillerRebinableAxis< HistogramFillerRebinable2DX, Axis::Y >, Monitored::HistogramFillerTree, and Monitored::VecHistogramFiller1D.
◆ 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 168 of file HistogramFiller.h.
168 {
170
172 for (;
i < std::max({
m.size()...}); ++
i ) {
175 }
176 }
178 }
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
void doFill(H *hist, W weight, size_t i, const M &m1, const Ms &... m)
Perform (arbitrary dimension) histogram fill with weight.
◆ getLock()
| const std::unique_lock< std::mutex > Monitored::HistogramFiller::getLock |
( |
| ) |
const |
|
inline |
◆ histogram()
| 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: