#include <HistHandler.h>
Definition at line 112 of file HistHandler.h.
◆ HistHandler_TH2()
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.
◆ ~HistHandler_TH2()
CP::HistHandler_TH2::~HistHandler_TH2 |
( |
| ) |
|
|
virtual |
◆ FindBin()
◆ GetBinContent()
double CP::HistHandler::GetBinContent |
( |
int |
bin | ) |
const |
|
inlineinherited |
◆ GetBinError()
double CP::HistHandler::GetBinError |
( |
int |
bin | ) |
const |
|
inlineinherited |
◆ GetBinName()
std::string CP::HistHandler_TH2::GetBinName |
( |
unsigned int |
bin | ) |
const |
|
overridevirtual |
Translates the bin number into the borders and return them as name.
Implements CP::HistHandler.
Definition at line 221 of file HistHandler.cxx.
222 int x(0),
y(0),
z(0);
224 TAxis* xAx =
GetHist()->GetXaxis();
225 TAxis* yAx =
GetHist()->GetYaxis();
226 return Form(
"%s_%.2f_to_%.2f_times_%s_%.2f_to_%.2f",
228 xAx->GetTitle(), xAx->GetBinLowEdge(
x), xAx->GetBinUpEdge(
x),
230 yAx->GetTitle(), yAx->GetBinLowEdge(
y), yAx->GetBinUpEdge(
y));
◆ GetHist()
TH1* CP::HistHandler::GetHist |
( |
| ) |
const |
|
inlineinherited |
◆ isOverFlowBin()
bool CP::HistHandler_TH2::isOverFlowBin |
( |
int |
b | ) |
const |
|
overridevirtual |
◆ nBins()
int CP::HistHandler_TH2::nBins |
( |
| ) |
const |
|
overridevirtual |
◆ nOverFlowBins()
int CP::HistHandler_TH2::nOverFlowBins |
( |
| ) |
const |
|
overridevirtual |
◆ SetBinContent()
void HistHandler::SetBinContent |
( |
int |
bin, |
|
|
float |
val |
|
) |
| |
|
inherited |
◆ SetBinError()
void HistHandler::SetBinError |
( |
int |
bin, |
|
|
float |
val |
|
) |
| |
|
inherited |
◆ m_H
std::unique_ptr<TH1> CP::HistHandler::m_H |
|
privateinherited |
◆ m_x_handler
std::unique_ptr<AxisHandler> CP::HistHandler_TH2::m_x_handler |
|
private |
◆ m_y_handler
std::unique_ptr<AxisHandler> CP::HistHandler_TH2::m_y_handler |
|
private |
The documentation for this class was generated from the following files: