ATLAS Offline Software
CaloSwEtaoff_v2.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 */
15 #ifndef CALOCLUSTERCORRECTION_CALOSWETAOFF_V2_H
16 #define CALOCLUSTERCORRECTION_CALOSWETAOFF_V2_H
17 
19 #include "CaloConditions/Array.h"
20 
21 
23 
24 
72 {
73 public:
76 
77 
98  virtual void makeTheCorrection (const Context& myctx,
99  xAOD::CaloCluster* cluster,
100  const CaloDetDescrElement* elt,
101  float eta,
102  float adj_eta,
103  float phi,
104  float adj_phi,
105  CaloSampling::CaloSample samp) const override;
106 
107 private:
110  { this, "correction", "Tabulated arrays of function parameters." };
111 
115  { this, "interp_barriers", "Allow breaking up the interpolation into independent regions." };
116 
119  { this, "degree", "Degree of the polynomial interpolation." };
120 
124  { this, "energies", "Table of energies at which the correction was tabulated." };
125 
128  { this, "energy_degree", "Degree of the polynomial interpolation in energy." };
129 };
130 
131 
132 #endif // not CALOCLUSTERCORRECTION_CALOSWETAOFF_V2_H
CaloSwEtaoff_v2::m_correction
Constant< CxxUtils::Array< 3 > > m_correction
Calibration constant: tabulated arrays of function parameters.
Definition: CaloSwEtaoff_v2.h:110
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloSwEtaoff_v2::m_energies
Constant< CxxUtils::Array< 1 > > m_energies
Calibration constant: table of energies at which the correction was tabulated.
Definition: CaloSwEtaoff_v2.h:124
Array.h
Simple multidimensional arrays.
CaloSwEtaoff_v2::m_degree
Constant< int > m_degree
Calibration constant: degree of the polynomial interpolation.
Definition: CaloSwEtaoff_v2.h:119
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloSwEtaoff_v2::m_energy_degree
Constant< int > m_energy_degree
Calibration constant: degree of the polynomial interpolation in energy.
Definition: CaloSwEtaoff_v2.h:128
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloClusterCorrectionCommon.h
CaloSwEtaoff_v2
Definition: CaloSwEtaoff_v2.py:1
CaloSwEtaoff_v2::m_interp_barriers
Constant< CxxUtils::Array< 1 > > m_interp_barriers
Calibration constant: allow breaking up the interpolation into independent regions.
Definition: CaloSwEtaoff_v2.h:115
CaloSwEtaoff_v2::makeTheCorrection
virtual void makeTheCorrection(const Context &myctx, xAOD::CaloCluster *cluster, const CaloDetDescrElement *elt, float eta, float adj_eta, float phi, float adj_phi, CaloSampling::CaloSample samp) const override
Virtual function for the correction-specific code.
Definition: CaloSwEtaoff_v2.cxx:45
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition: CaloClusterCorrectionCommon.h:42
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202