#include <HistHandler.h>
Definition at line 108 of file HistHandler.h.
◆ HistHandler_TH2() [1/2]
CP::HistHandler_TH2::HistHandler_TH2 |
( |
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 200 of file HistHandler.cxx.
◆ HistHandler_TH2() [2/2]
◆ ~HistHandler_TH2()
CP::HistHandler_TH2::~HistHandler_TH2 |
( |
| ) |
|
|
virtual |
◆ Copy()
◆ 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 248 of file HistHandler.cxx.
249 int x(0),
y(0),
z(0);
251 TAxis* xAx =
GetHist()->GetXaxis();
252 TAxis* yAx =
GetHist()->GetYaxis();
253 return Form(
"%s_%.2f_to_%.2f_times_%s_%.2f_to_%.2f",
255 xAx->GetTitle(), xAx->GetBinLowEdge(
x), xAx->GetBinUpEdge(
x),
257 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 |
◆ operator=()
◆ 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: