|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUONEFFICIENCYCORRECTIONS_HISTOHANDLER_H
6 #define MUONEFFICIENCYCORRECTIONS_HISTOHANDLER_H
21 #include <TDirectory.h>
47 if (!
m_H)
return DBL_MAX;
48 return m_H->GetBinContent(
bin);
54 if (!
m_H)
return DBL_MAX;
55 return m_H->GetBinError(
bin);
81 std::unique_ptr<TH1>
m_H;
96 int nBins()
const override;
120 int nBins()
const override;
145 int nBins()
const override;
175 int nBins()
const override;
int nBins() const override
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
void Copy(const HistHandler &other)
CorrectionCode FindBin(const xAOD::Muon &muon, int &bin) const override
Function that changes from Implementation to implementation.
int nBins() const override
Return the total number of bins in the histogram -> (GetNbins() +2)**n.
void SetBinError(int bin, float val)
HistHandler_TH1(TH1 *hist)
bool isOverFlowBin(int b) const override
States whether a bin is overflow or not.
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
CorrectionCode FindBin(const xAOD::Muon &muon, int &bin) const override
Function that changes from Implementation to implementation.
bool isOverFlowBin(int b) const override
States whether a bin is overflow or not.
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 FindBin(const xAOD::Muon &muon, int &bin) const override
Function that changes from Implementation to implementation.
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.
int nOverFlowBins() const override
Return the number of overflow bins.
HistHandler_TH3(TH1 *hist)
The HistHandler TH3 handles 3D histograms, since TH3 inhertis from TH1,a TH1* object is parsed avoidi...
Helper class to provide constant type-safe access to aux data.
virtual ~HistHandler_TH2()
virtual HistHandler_TH1 & operator=(const HistHandler_TH1 &other)
double GetBinContent(int bin) const
CorrectionCode GetBinningParameter(const xAOD::Muon &mu, float &value) const override
Select isolated Photons, Electrons and Muons.
std::unique_ptr< AxisHandler > m_y_handler
static bool s_use_2D_sf ATLAS_THREAD_SAFE
virtual HistHandler_TH2 & operator=(const HistHandler_TH2 &other)
virtual bool isOverFlowBin(int b) const =0
States whether a bin is overflow or not.
CorrectionCode GetBinningParameter(const xAOD::Muon &mu, float &value) const override
bool isOverFlowBin(int b) const override
States whether a bin is overflow or not.
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.
CorrectionCode GetBinningParameter(const xAOD::Muon &mu, float &value) const override
virtual ~AbsEtaAxisHandler()=default
std::unique_ptr< AxisHandler > m_z_handler
virtual ~ChargeAxisHandler()=default
std::unique_ptr< AxisHandler > m_y_handler
void SetBinContent(int bin, float val)
CorrectionCode FindBin(const xAOD::Muon &muon, int &bin) const override
Function that changes from Implementation to implementation.
CorrectionCode GetBinningParameter(const xAOD::Muon &mu, float &value) const override
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.
virtual HistHandler_TH3 & operator=(const HistHandler_TH3 &other)
SG::AuxElement::ConstAccessor< float > m_acc
CorrectionCode GetBinningParameter(const xAOD::Muon &mu, float &value) const override
virtual ~dRJetAxisHandler()=default
static std::string s_close_jet_decor ATLAS_THREAD_SAFE
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.
virtual ~EtaAxisHandler()=default
virtual CorrectionCode FindBin(const xAOD::Muon &muon, int &bin) const =0
Function that changes from Implementation to implementation.
virtual ~HistHandler_TH1()
virtual CorrectionCode GetBinningParameter(const xAOD::Muon &mu, float &value) const =0
CorrectionCode GetBinningParameter(const xAOD::Muon &mu, float &value) const override
std::string GetBinName(unsigned int bin) const override
Translates the bin number into the borders and return them as name.
std::unique_ptr< AxisHandler > m_x_handler
static void set_close_jet_decorator(const std::string &decor_name)
virtual ~PtAxisHandler()=default
static std::unique_ptr< AxisHandler > GetAxisHandler(const TAxis *axis)
std::unique_ptr< AxisHandler > m_x_handler
Return value from object correction CP tools.
std::unique_ptr< AxisHandler > m_y_handler
HistHandler_TH2Poly(TH2Poly *hist)
The HistHandler_TH2Poly handles the TH2Poly histograms of the scale-factor maps.
CorrectionCode GetBinningParameter(const xAOD::Muon &, float &) const override
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.
virtual HistHandler_TH2Poly & operator=(const HistHandler_TH2Poly &other)
HistHandler_TH2(TH1 *hist)
The HistHandler TH2 handles 2D histograms which are not TH2Poly, since TH2 inhertis from TH1,...
std::unique_ptr< TH1 > m_H
virtual ~HistHandler_TH3()
double GetBinError(int bin) const