ATLAS Offline Software
CaloSwGap_v3.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 */
11 #ifndef CALOCLUSTERCORRECTION_CALOSWGAP_V3_H
12 #define CALOCLUSTERCORRECTION_CALOSWGAP_V3_H
13 
14 
16 #include "CaloConditions/Array.h"
19 
20 
21 class CaloCellContainer;
22 
23 
54 {
55 public:
58 
59 
63  virtual StatusCode initialize() override;
64 
65 
87  virtual void makeTheCorrection (const Context& myctx,
88  xAOD::CaloCluster* cluster,
89  const CaloDetDescrElement* elt,
90  float eta,
91  float adj_eta,
92  float phi,
93  float adj_phi,
94  CaloSampling::CaloSample samp) const override;
95 
96 
97 
102  virtual StatusCode setCaloCellContainerName (const std::string& name) override;
103 
104  virtual bool isGoodPhi(float eta, float phi) const;
105 
106 private:
109  { this, "etamin_crack", "Lower end of range over which this correction is defined." };
111  { this, "etamax_crack", "Upper end of range over which this correction is defined." };
112 
115  { this, "degree", "Interpolation degree." };
116 
120  { this, "correctionGoodPhi", "" };
122  { this, "correctionBadPhi", "" };
123 
127  { this, "use_raw_eta", "If true, tabulated values are in terms of raw (local) eta." };
129  { this, "use_raw_eta_boundaries", "" };
130 
133  { this, "cells_name", "AllCalo", "The name of the container in which to look to find tile cells." };
134 };
135 
136 
137 #endif // not CALOCLUSTERCORRECTION_CALOSWGAP_V3_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloSwGap_v3::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: CaloSwGap_v3.cxx:43
ISetCaloCellContainerName
Allow changing the name of the CaloCellContainer used by a tool.
Definition: ISetCaloCellContainerName.h:23
CaloSwGap_v3::setCaloCellContainerName
virtual StatusCode setCaloCellContainerName(const std::string &name) override
Change the name of the CaloCellContainer used by this tool.
Definition: CaloSwGap_v3.cxx:175
CaloSwGap_v3::m_etamax_crack
Constant< float > m_etamax_crack
Definition: CaloSwGap_v3.h:111
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloSwGap_v3::m_correctionGoodPhi
Constant< CxxUtils::Array< 2 > > m_correctionGoodPhi
Calibration constant: The tabulated array of correction weights, A and alpha.
Definition: CaloSwGap_v3.h:120
ISetCaloCellContainerName.h
SG::ReadHandleKey< CaloCellContainer >
Array.h
Simple multidimensional arrays.
CaloSwGap_v3::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_v3.h:133
CaloSwGap_v3::m_use_raw_eta_boundaries
Constant< bool > m_use_raw_eta_boundaries
Definition: CaloSwGap_v3.h:129
CaloSwGap_v3::m_correctionBadPhi
Constant< CxxUtils::Array< 2 > > m_correctionBadPhi
Definition: CaloSwGap_v3.h:122
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
CaloSwGap_v3::m_degree
Constant< int > m_degree
Calibration constant: The interpolation degree.
Definition: CaloSwGap_v3.h:115
CaloSwGap_v3::isGoodPhi
virtual bool isGoodPhi(float eta, float phi) const
Definition: CaloSwGap_v3.cxx:181
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloClusterCorrectionCommon.h
CaloSwGap_v3
Definition: CaloSwGap_v3.py:1
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
CaloSwGap_v3::m_etamin_crack
Constant< float > m_etamin_crack
Calibration constants: The range over which this correction is defined.
Definition: CaloSwGap_v3.h:109
CaloSwGap_v3::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_v3.h:127
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloSwGap_v3::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_v3.cxx:71
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition: CaloClusterCorrectionCommon.h:42
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202