#include <HistHandler.h>
Definition at line 133 of file HistHandler.h.
◆ HistHandler_TH3() [1/2]
CP::HistHandler_TH3::HistHandler_TH3 |
( |
TH1 * |
hist | ) |
|
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 263 of file HistHandler.cxx.
◆ HistHandler_TH3() [2/2]
◆ ~HistHandler_TH3()
CP::HistHandler_TH3::~HistHandler_TH3 |
( |
| ) |
|
|
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_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 322 of file HistHandler.cxx.
323 int x(0),
y(0),
z(0);
325 TAxis* xAx =
GetHist()->GetXaxis();
326 TAxis* yAx =
GetHist()->GetYaxis();
327 TAxis* zAx =
GetHist()->GetZaxis();
328 return Form(
"%s_%.2f_to_%.2f_times_%s_%.2f_to_%.2f_times_%s_%.2f_to_%.2f",
330 xAx->GetTitle(), xAx->GetBinLowEdge(
x), xAx->GetBinUpEdge(
x),
332 yAx->GetTitle(), yAx->GetBinLowEdge(
y), yAx->GetBinUpEdge(
y),
334 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 295 of file HistHandler.cxx.
296 int x(-1),
y(-1),
z(-1);
298 return x == 0 ||
x ==
GetHist()->GetXaxis()->GetNbins() + 1 ||
299 y == 0 ||
y ==
GetHist()->GetYaxis()->GetNbins() + 1 ||
300 z == 0 ||
z ==
GetHist()->GetZaxis()->GetNbins() + 1;
◆ nBins()
int CP::HistHandler_TH3::nBins |
( |
| ) |
const |
|
overridevirtual |
◆ nOverFlowBins()
int CP::HistHandler_TH3::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_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: