ATLAS Offline Software
CaloSwDeadOTX_ps.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_PS_H
6 #define CALOCLUSTERCORRECTION_CALOSWDEADOTX_PS_H
7 /********************************************************************
8 
9 NAME: CaloSwDeadOTX_ps.h
10 PACKAGE: offline/Calorimeter/CaloClusterCorrection
11 
12 ********************************************************************/
13 
14 #include "GaudiKernel/ToolHandle.h"
17 #include "CaloConditions/Array.h"
19 
21 {
22 public:
23  // Inherit constructor
25 
26 
47  virtual void makeTheCorrection (const Context& myctx,
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  ToolHandle<ICaloAffectedTool> m_affectedTool{this, "AffectedTool", "CaloAffectedTool", "affected tool instance"};
63 
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_ps::m_eta_start_crack
Constant< float > m_eta_start_crack
Definition: CaloSwDeadOTX_ps.h:72
CaloSwDeadOTX_ps::m_use_raw_eta
Constant< bool > m_use_raw_eta
Definition: CaloSwDeadOTX_ps.h:75
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
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
CaloSwDeadOTX_ps::m_affectedTool
ToolHandle< ICaloAffectedTool > m_affectedTool
Definition: CaloSwDeadOTX_ps.h:67
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
CaloSwDeadOTX_ps::m_affKey
SG::ReadCondHandleKey< CaloAffectedRegionInfoVec > m_affKey
Definition: CaloSwDeadOTX_ps.h:65
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CaloSwDeadOTX_ps::m_etamax
Constant< float > m_etamax
Definition: CaloSwDeadOTX_ps.h:74
CaloClusterCorrectionCommon::CaloClusterCorrectionCommon
CaloClusterCorrectionCommon(const std::string &type, const std::string &name, const IInterface *parent)
Inherit constructor.
Definition: CaloClusterCorrectionCommon.cxx:408
CaloClusterCorrectionCommon.h
CaloSwDeadOTX_ps
Definition: CaloSwDeadOTX_ps.py:1
CaloSwDeadOTX_ps::initialize
virtual StatusCode initialize() override
Initialize method.
Definition: CaloSwDeadOTX_ps.cxx:28
SG::ReadCondHandleKey< CaloAffectedRegionInfoVec >
CaloUtils::ToolConstantsContext
Context object for retrieving ToolConstant values.
Definition: ToolWithConstants.h:61
CaloSwDeadOTX_ps::m_eta_end_crack
Constant< float > m_eta_end_crack
Definition: CaloSwDeadOTX_ps.h:73
CaloSwDeadOTX_ps::m_correction
Constant< CxxUtils::Array< 3 > > m_correction
Definition: CaloSwDeadOTX_ps.h:70
CaloClusterCorrectionCommon
Code common to cluster corrections.
Definition: CaloClusterCorrectionCommon.h:42
ICaloAffectedTool.h
CaloUtils::ToolConstant
Constant of a ToolWithConstants.
Definition: ToolWithConstants.h:202
CaloSwDeadOTX_ps::m_sampling_depth
Constant< CxxUtils::Array< 2 > > m_sampling_depth
Definition: CaloSwDeadOTX_ps.h:71
CaloSwDeadOTX_ps::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: CaloSwDeadOTX_ps.cxx:51