ATLAS Offline Software
LArHVMapTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARTOOLS_LARHVMAPTOOL_H
6 #define LARTOOLS_LARHVMAPTOOL_H
7 
10 
15 
16 
17 class LArHVMapTool: public ILArHVMapTool, public AthAlgTool
18 {
19 public:
20  LArHVMapTool(const std::string& type, const std::string& name,
21  const IInterface* parent);
22 
23  virtual ~LArHVMapTool() = default;
24 
25  virtual StatusCode initialize() override;
26  virtual StatusCode finalize() override {return StatusCode::SUCCESS;}
27 
28  virtual void GetHVLines(const Identifier& id, const CaloDetDescrManager *cddm,
29  std::vector<int> &hvLineVec) const override final;
30 
31  virtual void GetHVLines(const Identifier& id, const CaloDetDescrManager *cddm,
32  std::vector<HWIdentifier> &hvLineId) const override final;
33 private:
34 
35  void GetHVLinesCore(const Identifier& id, const CaloDetDescrManager *cddm,
36  std::vector<int> *hvLineVec, std::vector<HWIdentifier> *hvLineId) const;
37 
38  const CaloIdManager *m_caloIdMgr{nullptr};
39  const LArEM_ID* m_larem_id{nullptr};
40  const LArHEC_ID* m_larhec_id{nullptr};
41  const LArFCAL_ID* m_larfcal_id{nullptr};
42 
43  const LArHVIdMapping* m_hvmapping{nullptr};
44 
46  {this,"CaloDetDescrManager", "CaloDetDescrManager"};
48  {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"};
49 };
50 
51 #endif
LArHVMapTool::~LArHVMapTool
virtual ~LArHVMapTool()=default
LArHVMapTool::m_hvCablingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
Definition: LArHVMapTool.h:48
LArHVMapTool::finalize
virtual StatusCode finalize() override
Definition: LArHVMapTool.h:26
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArHVMapTool::LArHVMapTool
LArHVMapTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: LArHVMapTool.cxx:22
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition: CaloIdManager.h:45
LArHVMapTool
Definition: LArHVMapTool.h:18
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArHVIdMapping.h
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ILArHVMapTool.h
ILArHVMapTool
Definition: ILArHVMapTool.h:21
LArHVMapTool::GetHVLinesCore
void GetHVLinesCore(const Identifier &id, const CaloDetDescrManager *cddm, std::vector< int > *hvLineVec, std::vector< HWIdentifier > *hvLineId) const
Definition: LArHVMapTool.cxx:72
ReadCondHandleKey.h
LArHVMapTool::m_larfcal_id
const LArFCAL_ID * m_larfcal_id
Definition: LArHVMapTool.h:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::ReadCondHandleKey< CaloDetDescrManager >
LArHVIdMapping
Definition: LArHVIdMapping.h:21
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
LArHVMapTool::m_caloDetDescrMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
Definition: LArHVMapTool.h:46
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LArHVMapTool::initialize
virtual StatusCode initialize() override
Definition: LArHVMapTool.cxx:27
LArHVMapTool::m_caloIdMgr
const CaloIdManager * m_caloIdMgr
Definition: LArHVMapTool.h:38
CaloIdManager.h
LArHVMapTool::m_larem_id
const LArEM_ID * m_larem_id
Definition: LArHVMapTool.h:39
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArHVMapTool::m_hvmapping
const LArHVIdMapping * m_hvmapping
Definition: LArHVMapTool.h:43
AthAlgTool
Definition: AthAlgTool.h:26
LArHVMapTool::m_larhec_id
const LArHEC_ID * m_larhec_id
Definition: LArHVMapTool.h:40
LArHVMapTool::GetHVLines
virtual void GetHVLines(const Identifier &id, const CaloDetDescrManager *cddm, std::vector< int > &hvLineVec) const override final
Definition: LArHVMapTool.cxx:62
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
Identifier
Definition: IdentifierFieldParser.cxx:14