![]() |
ATLAS Offline Software
|
#include <HistHandler.h>
Public Member Functions | |
| HistHandler_TH2 (columnar::ColumnarTool<> *parent, TH1 *hist) | |
| The HistHandler TH2 handles 2D histograms which are not TH2Poly, since TH2 inhertis from TH1, a TH1* object is parsed avoiding the dynamic cast. | |
| virtual | ~HistHandler_TH2 () |
| int | nBins () const override |
| Return the total number of bins in the histogram -> (GetNbins() +2)**n. | |
| int | nOverFlowBins () const override |
| Return the number of overflow bins. | |
| bool | isOverFlowBin (int b) const override |
| States whether a bin is overflow or not. | |
| std::string | GetBinName (unsigned int bin) const override |
| Translates the bin number into the borders and return them as name. | |
| CorrectionCode | FindBin (columnar::MuonId muon, int &bin) const override |
| Function that changes from Implementation to implementation. | |
| double | GetBinContent (int bin) const |
| void | SetBinContent (int bin, float val) |
| double | GetBinError (int bin) const |
| TH1 * | GetHist () const |
| void | SetBinError (int bin, float val) |
Private Attributes | |
| std::unique_ptr< AxisHandler > | m_x_handler |
| std::unique_ptr< AxisHandler > | m_y_handler |
| std::unique_ptr< TH1 > | m_H |
Definition at line 112 of file HistHandler.h.
| CP::HistHandler_TH2::HistHandler_TH2 | ( | columnar::ColumnarTool<> * | parent, |
| TH1 * | hist ) |
The HistHandler TH2 handles 2D histograms which are not TH2Poly, since TH2 inhertis from TH1, a TH1* object is parsed avoiding the dynamic cast.
Via the GetDimension() method of the TH1 the class ensures that the histogram has actual dimension 2. No specific TH2 method is required in all considered usecases of TH1.
Definition at line 187 of file HistHandler.cxx.
|
virtual |
Definition at line 219 of file HistHandler.cxx.
|
overridevirtual |
Function that changes from Implementation to implementation.
Implements CP::HistHandler.
Definition at line 202 of file HistHandler.cxx.
Definition at line 51 of file HistHandler.h.
Definition at line 58 of file HistHandler.h.
Translates the bin number into the borders and return them as name.
Implements CP::HistHandler.
Definition at line 221 of file HistHandler.cxx.
|
inlineinherited |
Definition at line 63 of file HistHandler.h.
States whether a bin is overflow or not.
Implements CP::HistHandler.
Definition at line 197 of file HistHandler.cxx.
|
overridevirtual |
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
Implements CP::HistHandler.
Definition at line 193 of file HistHandler.cxx.
|
overridevirtual |
Return the number of overflow bins.
Implements CP::HistHandler.
Definition at line 196 of file HistHandler.cxx.
Definition at line 140 of file HistHandler.cxx.
Definition at line 145 of file HistHandler.cxx.
|
privateinherited |
Definition at line 86 of file HistHandler.h.
|
private |
Definition at line 132 of file HistHandler.h.
|
private |
Definition at line 133 of file HistHandler.h.