ATLAS Offline Software
CaloSwDeadOTX_back.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 #ifndef CALOCLUSTERCORRECTION_CALOSWDEADOTX_BACK_H
6 #define CALOCLUSTERCORRECTION_CALOSWDEADOTX_BACK_H
7 /********************************************************************
8 
9 NAME: CaloSwDeadOTX_back.h
10 PACKAGE: offline/Calorimeter/CaloClusterCorrection
11 
12 ********************************************************************/
13 
14 #include "GaudiKernel/ToolHandle.h"
17 #include "CaloConditions/Array.h"
19 
21 {
22 public:
25 
26 
47  virtual void makeTheCorrection (const Context& muctx,
48  xAOD::CaloCluster* cluster,
49  const CaloDetDescrElement* elt,
50  float eta,
51  float adj_eta,
52  float phi,
53  float adj_phi,
54  CaloSampling::CaloSample samp) const override;
55 
56  virtual StatusCode initialize() override;
57 
58  private:
59 
61  "LArAffectedRegionKey", "LArAffectedRegionInfo", "SG key for affected regions cond object"};
62 
63  ToolHandle<ICaloAffectedTool> m_affectedTool{this, "AffectedTool", "CaloAffectedTool", "affected tool instance"};
64 
65  Constant<CxxUtils::Array<3> > m_correction { this, "correction", "" };
66  Constant<CxxUtils::Array<2> > m_sampling_depth { this, "sampling_depth", ""};
67  Constant<float> m_eta_start_crack { this, "eta_start_crack",""};
68  Constant<float> m_eta_end_crack { this, "eta_end_crack", "" };
69  Constant<float> m_etamax { this, "etamax", "" };
70  Constant<bool> m_use_raw_eta { this, "use_raw_eta", "" };
71 };
72 
73 #endif
74 
CaloAffectedRegionInfoVec.h
CaloSwDeadOTX_back::m_eta_start_crack
Constant< float > m_eta_start_crack
Definition: CaloSwDeadOTX_back.h:72
CaloSwDeadOTX_back::makeTheCorrection
virtual void makeTheCorrection(const Context &muctx, 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: CaloSwDeadOTX_back.cxx:52
CaloSwDeadOTX_back::m_sampling_depth
Constant< CxxUtils::Array< 2 > > m_sampling_depth
Definition: CaloSwDeadOTX_back.h:71
CaloSwDeadOTX_back::m_affectedTool
ToolHandle< ICaloAffectedTool > m_affectedTool
Definition: CaloSwDeadOTX_back.h:68
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloSwDeadOTX_back::m_etamax
Constant< float > m_etamax
Definition: CaloSwDeadOTX_back.h:74
CaloSwDeadOTX_back
Definition: CaloSwDeadOTX_back.py:1
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
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloClusterCorrectionCommon.h
CaloSwDeadOTX_back::m_use_raw_eta
Constant< bool > m_use_raw_eta
Definition: CaloSwDeadOTX_back.h:75
CaloSwDeadOTX_back::m_eta_end_crack
Constant< float > m_eta_end_crack
Definition: CaloSwDeadOTX_back.h:73
CaloSwDeadOTX_back::initialize
virtual StatusCode initialize() override
Initialize method.
Definition: CaloSwDeadOTX_back.cxx:29
SG::ReadCondHandleKey< CaloAffectedRegionInfoVec >
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloSwDeadOTX_back::m_correction
Constant< CxxUtils::Array< 3 > > m_correction
Definition: CaloSwDeadOTX_back.h:70
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition: CaloClusterCorrectionCommon.h:42
ICaloAffectedTool.h
CaloSwDeadOTX_back::m_affKey
SG::ReadCondHandleKey< CaloAffectedRegionInfoVec > m_affKey
Definition: CaloSwDeadOTX_back.h:65
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202