ATLAS Offline Software
Loading...
Searching...
No Matches
GetAmountHisto1D Struct Reference

#include <egammaLayerRecalibTool.h>

Inheritance diagram for GetAmountHisto1D:
Collaboration diagram for GetAmountHisto1D:

Public Member Functions

 GetAmountHisto1D (const TH1 &histo)
virtual float operator() (const StdCalibrationInputs &input) const

Protected Attributes

std::unique_ptr< TH1 > m_histo

Detailed Description

Definition at line 124 of file egammaLayerRecalibTool.h.

Constructor & Destructor Documentation

◆ GetAmountHisto1D()

GetAmountHisto1D::GetAmountHisto1D ( const TH1 & histo)
inline

Definition at line 126 of file egammaLayerRecalibTool.h.

127 : m_histo(static_cast<TH1*>(histo.Clone())) {
128 m_histo->SetDirectory(nullptr);
129 };
std::unique_ptr< TH1 > m_histo

Member Function Documentation

◆ operator()()

float GetAmountHisto1D::operator() ( const StdCalibrationInputs & input) const
virtual

Implements GetAmountBase.

Reimplemented in GetAmountHisto1DDown, GetAmountHisto1DErrorDown, GetAmountHisto1DErrorUp, and GetAmountHisto1DUp.

Definition at line 53 of file egammaLayerRecalibTool.cxx.

53 {
54 const int bin = m_histo->FindFixBin(input.eta);
55 if (m_histo->IsBinUnderflow(bin) or m_histo->IsBinOverflow(bin)) return VALUE_OVERFLOW;
56 return m_histo->GetBinContent(bin);
57}

Member Data Documentation

◆ m_histo

std::unique_ptr<TH1> GetAmountHisto1D::m_histo
protected

Definition at line 132 of file egammaLayerRecalibTool.h.


The documentation for this struct was generated from the following files: