Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUONEFFICIENCYCORRECTIONS_HISTOHANDLER_H
6 #define MUONEFFICIENCYCORRECTIONS_HISTOHANDLER_H
21 #include <TDirectory.h>
52 if (!
m_H)
return DBL_MAX;
53 return m_H->GetBinContent(
bin);
59 if (!
m_H)
return DBL_MAX;
60 return m_H->GetBinError(
bin);
86 std::unique_ptr<TH1>
m_H;
99 int nBins()
const override;
122 int nBins()
const override;
146 int nBins()
const override;
174 int nBins()
const override;
int nBins() const override
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
CorrectionCode GetBinningParameter(columnar::MuonId, float &) const override
int nBins() const override
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
void SetBinError(int bin, float val)
bool isOverFlowBin(int b) const override
States whether a bin is overflow or not.
UndefinedAxisHandler(columnar::ColumnarTool<> *parent)
std::string GetBinName(unsigned int bin) const override
Translates the bin number into the borders and return them as name.
virtual ~PhiAxisHandler()=default
std::unique_ptr< AxisHandler > m_x_handler
bool isOverFlowBin(int b) const override
States whether a bin is overflow or not.
HistHandler(columnar::ColumnarTool<> *parent, TH1 *Hist)
virtual ~AxisHandler()=default
virtual std::string GetBinName(unsigned int bin) const =0
Translates the bin number into the borders and return them as name.
CorrectionCode GetBinningParameter(columnar::MuonId mu, float &value) const override
int nOverFlowBins() const override
Return the number of overflow bins.
virtual ~HistHandler_TH2Poly()
bool isOverFlowBin(int b) const override
States whether a bin is overflow or not.
CorrectionCode FindBin(columnar::MuonId muon, int &bin) const override
Function that changes from Implementation to implementation.
CorrectionCode FindBin(columnar::MuonId muon, int &bin) const override
Function that changes from Implementation to implementation.
int nOverFlowBins() const override
Return the number of overflow bins.
virtual CorrectionCode FindBin(columnar::MuonId muon, int &bin) const =0
Function that changes from Implementation to implementation.
HistHandler_TH3(columnar::ColumnarTool<> *parent, TH1 *hist)
The HistHandler TH3 handles 3D histograms, since TH3 inhertis from TH1,a TH1* object is parsed avoidi...
HistHandler(const HistHandler &other)=delete
virtual ~HistHandler_TH2()
AbsEtaAxisHandler(columnar::ColumnarTool<> *parent)
double GetBinContent(int bin) const
CorrectionCode FindBin(columnar::MuonId muon, int &bin) const override
Function that changes from Implementation to implementation.
Select isolated Photons, Electrons and Muons.
std::unique_ptr< AxisHandler > m_y_handler
AxisHandler(columnar::ColumnarTool<> *parent)
static bool s_use_2D_sf ATLAS_THREAD_SAFE
virtual bool isOverFlowBin(int b) const =0
States whether a bin is overflow or not.
bool isOverFlowBin(int b) const override
States whether a bin is overflow or not.
virtual CorrectionCode GetBinningParameter(columnar::MuonId mu, float &value) const =0
dRJetAxisHandler(columnar::ColumnarTool<> *parent)
int nOverFlowBins() const override
Return the number of overflow bins.
virtual int nOverFlowBins() const =0
Return the number of overflow bins.
int nOverFlowBins() const override
Return the number of overflow bins.
std::string GetBinName(unsigned int bin) const override
Translates the bin number into the borders and return them as name.
columnar::MuonAccessor< float > etaAcc
virtual ~AbsEtaAxisHandler()=default
PhiAxisHandler(columnar::ColumnarTool<> *parent)
CorrectionCode GetBinningParameter(columnar::MuonId mu, float &value) const override
std::unique_ptr< AxisHandler > m_z_handler
columnar::MuonAccessor< float > chargeAcc
virtual ~ChargeAxisHandler()=default
std::unique_ptr< AxisHandler > m_y_handler
CorrectionCode FindBin(columnar::MuonId muon, int &bin) const override
Function that changes from Implementation to implementation.
CorrectionCode GetBinningParameter(columnar::MuonId mu, float &value) const override
static std::unique_ptr< AxisHandler > GetAxisHandler(columnar::ColumnarTool<> *parent, const TAxis *axis)
void SetBinContent(int bin, float val)
columnar::MuonAccessor< float > ptAcc
PtAxisHandler(columnar::ColumnarTool<> *parent)
CorrectionCode GetBinningParameter(columnar::MuonId mu, float &value) const override
CorrectionCode GetBinningParameter(columnar::MuonId mu, float &value) const override
HistHandler_TH1(columnar::ColumnarTool<> *parent, TH1 *hist)
columnar::MuonAccessor< float > acc_dR_deriv
std::unique_ptr< AxisHandler > m_x_handler
static void set_use_2D_sf(const bool)
std::string GetBinName(unsigned int bin) const override
Translates the bin number into the borders and return them as name.
CorrectionCode GetBinningParameter(columnar::MuonId mu, float &value) const override
HistHandler_TH2(columnar::ColumnarTool<> *parent, TH1 *hist)
The HistHandler TH2 handles 2D histograms which are not TH2Poly, since TH2 inhertis from TH1,...
virtual ~dRJetAxisHandler()=default
a class representing a single object (electron, muons, etc.)
static std::string s_close_jet_decor ATLAS_THREAD_SAFE
columnar::MuonAccessor< float > etaAcc
int nBins() const override
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
int nBins() const override
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
columnar::MuonAccessor< float > m_acc
virtual ~EtaAxisHandler()=default
virtual ~HistHandler_TH1()
columnar::MuonAccessor< float > phiAcc
ChargeAxisHandler(columnar::ColumnarTool<> *parent)
std::string GetBinName(unsigned int bin) const override
Translates the bin number into the borders and return them as name.
EtaAxisHandler(columnar::ColumnarTool<> *parent)
std::unique_ptr< AxisHandler > m_x_handler
static void set_close_jet_decorator(const std::string &decor_name)
virtual ~PtAxisHandler()=default
HistHandler & operator=(const HistHandler &other)=delete
std::unique_ptr< AxisHandler > m_x_handler
Return value from object correction CP tools.
std::unique_ptr< AxisHandler > m_y_handler
HistHandler_TH2Poly(columnar::ColumnarTool<> *parent, TH2Poly *hist)
The HistHandler_TH2Poly handles the TH2Poly histograms of the scale-factor maps.
the raw column accessor template class
virtual ~UndefinedAxisHandler()=default
Define macros for attributes used to control the static checker.
virtual int nBins() const =0
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
std::unique_ptr< TH1 > m_H
virtual ~HistHandler_TH3()
double GetBinError(int bin) const