![]() |
ATLAS Offline Software
|
Base class for all histogram fillers. More...
#include <HistogramFiller.h>
Classes | |
| struct | VariablesPack |
| helper class to pass variables to fillers More... | |
Public Member Functions | |
| HistogramFiller (const HistogramDef &histDef, std::shared_ptr< IHistogramProvider > histogramProvider) | |
| Default constructor. | |
| HistogramFiller (const HistogramFiller &hf) | |
| Copy constructor. | |
| virtual | ~HistogramFiller () |
| Virtual destructor. | |
| virtual unsigned | fill (const VariablesPack &) const =0 |
| Method that actually fills the ROOT object. | |
| void | touch () const |
| Ensure histogram exists. | |
| const std::vector< std::string > & | histogramVariablesNames () const |
| const std::string & | histogramWeightName () const |
| const std::string & | histogramCutMaskName () const |
| const std::unique_lock< std::mutex > | getLock () const |
Protected Member Functions | |
| 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. | |
Protected Attributes | |
| std::shared_ptr< HistogramDef > | m_histDef |
| std::shared_ptr< IHistogramProvider > | m_histogramProvider |
| std::mutex | m_lock |
Private Member Functions | |
| HistogramFiller & | operator= (HistogramFiller const &)=delete |
Base class for all histogram fillers.
Definition at line 44 of file HistogramFiller.h.
|
inline |
Default constructor.
| histDef | Histogram definition of ROOT object |
Definition at line 51 of file HistogramFiller.h.
|
inline |
Copy constructor.
| hf | Other HistogramFiller |
Definition at line 59 of file HistogramFiller.h.
|
inlinevirtual |
|
pure virtual |
Method that actually fills the ROOT object.
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.
|
inlineprotected |
Fill histogram from IMonitoredVariable.
Supports arbitrary dimensions and double/string representation.
| H | histogram type (TH1, TH2, ...) |
| weight | weight accessor (use detail::noWeight if not needed) |
| cut | cut mask accessor (use detail::noCut if not needed) |
| m... | IMonitoredVariable list to fill from |
Definition at line 168 of file HistogramFiller.h.
|
inline |
Definition at line 147 of file HistogramFiller.h.
Definition at line 153 of file HistogramFiller.h.
|
inline |
Definition at line 143 of file HistogramFiller.h.
|
inline |
Definition at line 135 of file HistogramFiller.h.
|
inline |
Definition at line 139 of file HistogramFiller.h.
|
privatedelete |
|
inline |
Ensure histogram exists.
Definition at line 130 of file HistogramFiller.h.
|
protected |
Definition at line 180 of file HistogramFiller.h.
|
protected |
Definition at line 181 of file HistogramFiller.h.
|
mutableprotected |
Definition at line 182 of file HistogramFiller.h.