#include <HistHandler.h>
Definition at line 161 of file HistHandler.h.
◆ HistHandler_TH2Poly() [1/2]
CP::HistHandler_TH2Poly::HistHandler_TH2Poly |
( |
TH2Poly * |
hist | ) |
|
The HistHandler_TH2Poly handles the TH2Poly histograms of the scale-factor maps.
Since the bin-finding, algoritihms of the TH2Poly differ from the ones of TH1, TH2 & TH3 explicit methods of TH2Poly are needed to pick-up the proper bin.
Definition at line 341 of file HistHandler.cxx.
◆ HistHandler_TH2Poly() [2/2]
◆ ~HistHandler_TH2Poly()
CP::HistHandler_TH2Poly::~HistHandler_TH2Poly |
( |
| ) |
|
|
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_TH2Poly::GetBinName |
( |
unsigned int |
bin | ) |
const |
|
overridevirtual |
Translates the bin number into the borders and return them as name.
Implements CP::HistHandler.
Definition at line 391 of file HistHandler.cxx.
392 int x(0),
y(0),
z(0);
394 TAxis* xAx =
GetHist()->GetXaxis();
395 TAxis* yAx =
GetHist()->GetYaxis();
396 return Form(
"%s_%.2f_to_%.2f__times_%s_%.2f_to_%.2f",
397 xAx->GetTitle(), xAx->GetBinLowEdge(
x), xAx->GetBinUpEdge(
x),
398 yAx->GetTitle(), yAx->GetBinLowEdge(
y), yAx->GetBinUpEdge(
y));
◆ GetHist()
TH1* CP::HistHandler::GetHist |
( |
| ) |
const |
|
inlineinherited |
◆ isOverFlowBin()
bool CP::HistHandler_TH2Poly::isOverFlowBin |
( |
int |
b | ) |
const |
|
overridevirtual |
◆ nBins()
int CP::HistHandler_TH2Poly::nBins |
( |
| ) |
const |
|
overridevirtual |
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
Implements CP::HistHandler.
Definition at line 370 of file HistHandler.cxx.
371 return m_h->GetNumberOfBins() + 1;
◆ nOverFlowBins()
int CP::HistHandler_TH2Poly::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_h
TH2Poly* CP::HistHandler_TH2Poly::m_h |
|
private |
◆ m_x_handler
std::unique_ptr<AxisHandler> CP::HistHandler_TH2Poly::m_x_handler |
|
private |
◆ m_y_handler
std::unique_ptr<AxisHandler> CP::HistHandler_TH2Poly::m_y_handler |
|
private |
The documentation for this class was generated from the following files: