ATLAS Offline Software
CaloTopoEMGap.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  * AUTHORS: N. Kerschen
7  * CREATED: Nov 2006
8  *
9  * PURPOSE: Correction for the barrel-endcap cracks
10  * for topoEM cluster (based on CaloSwGap_v2.h)
11  *
12  */
13 
14 
15 #ifndef CALOCLUSTERCORRECTION_CALOTOPOEMGAP_H
16 #define CALOCLUSTERCORRECTION_CALOTOPOEMGAP_H
17 
18 
20 #include "CaloConditions/Array.h"
22 
23 
24 class CaloCellContainer;
25 
26 
29 {
30 public:
33 
34 
38  virtual StatusCode initialize() override;
39 
40 
61  virtual void makeTheCorrection (const Context& myctx,
62  xAOD::CaloCluster* cluster,
63  const CaloDetDescrElement* elt,
64  float eta,
65  float adj_eta,
66  float phi,
67  float adj_phi,
68  CaloSampling::CaloSample samp) const override;
69 
70 
71 private:
74  { this, "etamin_crack", "Lower edge of range over which this correction is defined." };
76  { this, "etamax_crack", "Upper edge of range over which this correction is defined." };
77 
80  { this, "degree", "The interpolation degree." };
81 
85  { this, "correction", "The tabulated array of correction weights, A and alpha." };
86 
90  { this, "use_raw_eta", "If true, tabulated values are in terms of raw (local) eta." };
91 
93  { this, "Cells", "AllCalo", "SG key for calorimeter cells" };
94 };
95 
96 
97 #endif // not CALOCLUSTERCORRECTION_CALOSWGAP_V2_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloTopoEMGap::m_degree
Constant< int > m_degree
Calibration constant: The interpolation degree.
Definition: CaloTopoEMGap.h:80
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
CaloTopoEMGap::m_correction
Constant< CxxUtils::Array< 2 > > m_correction
Calibration constant: The tabulated array of correction weights, A and alpha.
Definition: CaloTopoEMGap.h:85
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
CaloTopoEMGap::m_cells
SG::ReadHandleKey< CaloCellContainer > m_cells
Definition: CaloTopoEMGap.h:93
SG::ReadHandleKey< CaloCellContainer >
Array.h
Simple multidimensional arrays.
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
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
CaloTopoEMGap
Definition: CaloTopoEMGap.h:29
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloTopoEMGap::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: CaloTopoEMGap.cxx:70
CaloTopoEMGap::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: CaloTopoEMGap.cxx:42
CaloClusterCorrectionCommon.h
CaloTopoEMGap::m_use_raw_eta
Constant< bool > m_use_raw_eta
Calibration constant: If true, tabulated values are in terms of raw (local) eta.
Definition: CaloTopoEMGap.h:90
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
CaloTopoEMGap::m_etamax_crack
Constant< float > m_etamax_crack
Definition: CaloTopoEMGap.h:76
CaloTopoEMGap::m_etamin_crack
Constant< float > m_etamin_crack
Calibration constants: The range over which this correction is defined.
Definition: CaloTopoEMGap.h:74
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