#include <HistHandler.h>
Definition at line 136 of file HistHandler.h.
◆ HistHandler_TH3()
The HistHandler TH3 handles 3D histograms, since TH3 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 3. No specific TH3 method is required in all use-caes of the class.
Definition at line 236 of file HistHandler.cxx.
◆ ~HistHandler_TH3()
CP::HistHandler_TH3::~HistHandler_TH3 |
( |
| ) |
|
|
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_TH3::GetBinName |
( |
unsigned int |
bin | ) |
const |
|
overridevirtual |
Translates the bin number into the borders and return them as name.
Implements CP::HistHandler.
Definition at line 278 of file HistHandler.cxx.
279 int x(0),
y(0),
z(0);
281 TAxis* xAx =
GetHist()->GetXaxis();
282 TAxis* yAx =
GetHist()->GetYaxis();
283 TAxis* zAx =
GetHist()->GetZaxis();
284 return Form(
"%s_%.2f_to_%.2f_times_%s_%.2f_to_%.2f_times_%s_%.2f_to_%.2f",
286 xAx->GetTitle(), xAx->GetBinLowEdge(
x), xAx->GetBinUpEdge(
x),
288 yAx->GetTitle(), yAx->GetBinLowEdge(
y), yAx->GetBinUpEdge(
y),
290 zAx->GetTitle(), zAx->GetBinLowEdge(
z), zAx->GetBinUpEdge(
z));
◆ GetHist()
TH1* CP::HistHandler::GetHist |
( |
| ) |
const |
|
inlineinherited |
◆ isOverFlowBin()
bool CP::HistHandler_TH3::isOverFlowBin |
( |
int |
b | ) |
const |
|
overridevirtual |
States whether a bin is overflow or not.
Implements CP::HistHandler.
Definition at line 251 of file HistHandler.cxx.
252 int x(-1),
y(-1),
z(-1);
254 return x == 0 ||
x ==
GetHist()->GetXaxis()->GetNbins() + 1 ||
255 y == 0 ||
y ==
GetHist()->GetYaxis()->GetNbins() + 1 ||
256 z == 0 ||
z ==
GetHist()->GetZaxis()->GetNbins() + 1;
◆ nBins()
int CP::HistHandler_TH3::nBins |
( |
| ) |
const |
|
overridevirtual |
◆ nOverFlowBins()
int CP::HistHandler_TH3::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_TH3::m_x_handler |
|
private |
◆ m_y_handler
std::unique_ptr<AxisHandler> CP::HistHandler_TH3::m_y_handler |
|
private |
◆ m_z_handler
std::unique_ptr<AxisHandler> CP::HistHandler_TH3::m_z_handler |
|
private |
The documentation for this class was generated from the following files: