ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
GetAmountHisto2D Struct Reference

#include <egammaLayerRecalibTool.h>

Inheritance diagram for GetAmountHisto2D:
Collaboration diagram for GetAmountHisto2D:

Public Member Functions

 GetAmountHisto2D (const TH2F &histo)
 
virtual GetAmountHisto2Dclone () const
 
virtual float operator() (const StdCalibrationInputs &input) const
 

Protected Attributes

TH2F m_histo
 

Detailed Description

Definition at line 185 of file egammaLayerRecalibTool.h.

Constructor & Destructor Documentation

◆ GetAmountHisto2D()

GetAmountHisto2D::GetAmountHisto2D ( const TH2F &  histo)
inline

Definition at line 187 of file egammaLayerRecalibTool.h.

187 : m_histo(histo) { m_histo.SetDirectory(nullptr); };

Member Function Documentation

◆ clone()

virtual GetAmountHisto2D* GetAmountHisto2D::clone ( ) const
inlinevirtual

Implements GetAmountBase.

Definition at line 188 of file egammaLayerRecalibTool.h.

188 { return new GetAmountHisto2D(*this); };

◆ operator()()

float GetAmountHisto2D::operator() ( const StdCalibrationInputs input) const
virtual

Implements GetAmountBase.

Definition at line 85 of file egammaLayerRecalibTool.cxx.

85  {
86  const int bin = m_histo.FindFixBin(input.eta, input.phi);
87  if (m_histo.IsBinUnderflow(bin) or m_histo.IsBinOverflow(bin)) return VALUE_OVERFLOW;
88  return m_histo.GetBinContent(bin);
89 }

Member Data Documentation

◆ m_histo

TH2F GetAmountHisto2D::m_histo
protected

Definition at line 191 of file egammaLayerRecalibTool.h.


The documentation for this struct was generated from the following files:
bin
Definition: BinsDiffFromStripMedian.h:43
GetAmountHisto2D::m_histo
TH2F m_histo
Definition: egammaLayerRecalibTool.h:191
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
GetAmountHisto2D::GetAmountHisto2D
GetAmountHisto2D(const TH2F &histo)
Definition: egammaLayerRecalibTool.h:187
plotBeamSpotCompare.histo
histo
Definition: plotBeamSpotCompare.py:415