ATLAS Offline Software
CaloSwGap_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 */
31 #ifndef CALOCLUSTERCORRECTION_CALOSWGAP_V2_H
32 #define CALOCLUSTERCORRECTION_CALOSWGAP_V2_H
33 
34 
36 #include "CaloConditions/Array.h"
39 
40 
41 class CaloCellContainer;
42 
43 
74 {
75 public:
78 
79 
83  virtual StatusCode initialize() override;
84 
85 
106  virtual void makeTheCorrection (const Context& myctx,
107  xAOD::CaloCluster* cluster,
108  const CaloDetDescrElement* elt,
109  float eta,
110  float adj_eta,
111  float phi,
112  float adj_phi,
113  CaloSampling::CaloSample samp) const override;
114 
115 
116 
121  virtual StatusCode setCaloCellContainerName (const std::string& name) override;
122 
123 
124 private:
127  { this, "etamin_crack", "Lower end of range over which this correction is defined." };
129  { this, "etamax_crack", "Upper end of range over which this correction is defined." };
130 
133  { this, "degree", "Interpolation degree." };
134 
138  { this, "correction", "The tabulated array of correction weights, A and alpha." };
139 
143  { this, "use_raw_eta", "If true, tabulated values are in terms of raw (local) eta." };
144 
147  { this, "cells_name", "AllCalo", "The name of the container in which to look to find tile cells." };
148 };
149 
150 
151 #endif // not CALOCLUSTERCORRECTION_CALOSWGAP_V2_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloSwGap_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: CaloSwGap_v2.h:143
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
ISetCaloCellContainerName
Allow changing the name of the CaloCellContainer used by a tool.
Definition: ISetCaloCellContainerName.h:23
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
ISetCaloCellContainerName.h
SG::ReadHandleKey< CaloCellContainer >
Array.h
Simple multidimensional arrays.
CaloSwGap_v2::m_degree
Constant< int > m_degree
Calibration constant: The interpolation degree.
Definition: CaloSwGap_v2.h:133
CaloSwGap_v2
Definition: CaloSwGap_v2.py:1
CaloSwGap_v2::m_etamax_crack
Constant< float > m_etamax_crack
Definition: CaloSwGap_v2.h:129
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
CaloSwGap_v2::m_cells_name
SG::ReadHandleKey< CaloCellContainer > m_cells_name
Property: The name of the container in which to look to find tile cells.
Definition: CaloSwGap_v2.h:147
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloSwGap_v2::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: CaloSwGap_v2.cxx:63
CaloClusterCorrectionCommon.h
CaloSwGap_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: CaloSwGap_v2.cxx:91
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
CaloSwGap_v2::setCaloCellContainerName
virtual StatusCode setCaloCellContainerName(const std::string &name) override
Change the name of the CaloCellContainer used by this tool.
Definition: CaloSwGap_v2.cxx:164
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloSwGap_v2::m_correction
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: The tabulated array of correction weights, A and alpha.
Definition: CaloSwGap_v2.h:138
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition: CaloClusterCorrectionCommon.h:42
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202
CaloSwGap_v2::m_etamin_crack
Constant< float > m_etamin_crack
Calibration constants: The range over which this correction is defined.
Definition: CaloSwGap_v2.h:127