ATLAS Offline Software
CaloSwClcon_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 */
39 #ifndef CALOCLUSTERCORRECTION_CALOSWCLCON_V2_H
40 #define CALOCLUSTERCORRECTION_CALOSWCLCON_V2_H
41 
42 
44 #include "CaloConditions/Array.h"
45 
46 
70 {
71  public:
72  // Inherit constructor.
74 
75 
96  virtual void makeTheCorrection (const Context& myctx,
97  xAOD::CaloCluster* cluster,
98  const CaloDetDescrElement* elt,
99  float eta,
100  float adj_eta,
101  float phi,
102  float adj_phi,
103  CaloSampling::CaloSample samp) const override;
104 
105 
106 private:
109  { this, "etamax", "Maximum eta for which this correction is defined." };
110 
113  { this, "degree", "Degree of the polynomial interpolation." };
114 
117  { this, "correction", "Tabulated arrays of function parameters." };
118 
122  { this, "energies", "Table of energies at which the correctionwas tabulated." };
123 
126  { this, "energy_degree", "Degree of the polynomial interpolation in energy." };
127 
131  { this, "use_raw_eta", "If true, tabulated values are in terms of raw (local) eta." };
132 };
133 
134 
135 #endif // not CALOCLUSTERCORRECTION_CALOSWCLCON_V2_H
136 
CaloSwClcon_v2::m_etamax
Constant< float > m_etamax
Calibration constant: maximum eta for which this correction is defined.
Definition: CaloSwClcon_v2.h:109
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
CaloSwClcon_v2::m_use_raw_eta
Constant< bool > m_use_raw_eta
Calibration constant: If true, tabulated values are in terms of raw (local) eta.
Definition: CaloSwClcon_v2.h:131
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloSwClcon_v2::m_degree
Constant< int > m_degree
Calibration constant: degree of the polynomial interpolation.
Definition: CaloSwClcon_v2.h:113
Array.h
Simple multidimensional arrays.
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloSwClcon_v2::m_energy_degree
Constant< int > m_energy_degree
Calibration constant: degree of the polynomial interpolation in energy.
Definition: CaloSwClcon_v2.h:126
CaloSwClcon_v2
EM calorimeter containment correction.
Definition: CaloSwClcon_v2.h:70
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
CaloSwClcon_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: CaloSwClcon_v2.cxx:67
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloClusterCorrectionCommon.h
CaloSwClcon_v2::m_energies
Constant< CxxUtils::Array< 1 > > m_energies
Calibration constant: table of energies at which the correction was tabulated.
Definition: CaloSwClcon_v2.h:122
CaloSwClcon_v2::m_correction
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: tabulated arrays of function parameters.
Definition: CaloSwClcon_v2.h:117
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