ATLAS Offline Software
LArHVPathologyDbCondAlg.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 LARHVPATHOLOGYDBCONDALG
6 #define LARHVPATHOLOGYDBCONDALG
7 
9 #include "StoreGate/ReadHandle.h"
10 #include "StoreGate/WriteHandle.h"
17 
18 #include<mutex>
19 
20 class LArEM_ID;
21 class LArHEC_ID;
22 class LArFCAL_ID;
23 class LArOnlineID;
25 class LArHVLineID;
26 class Identifier;
27 class TClass;
28 
30 {
31  public:
32  LArHVPathologyDbCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
33 
34  virtual ~LArHVPathologyDbCondAlg();
35 
36  virtual StatusCode initialize() override;
37  virtual StatusCode finalize() override;
38  virtual StatusCode execute(const EventContext& ctx) const override;
39 
40  private:
41 
42  void fillElectMap(const CaloDetDescrManager* calodetdescrmgr,
43  LArHVPathology* hvpath,
44  SG::WriteCondHandle<LArHVPathology>& writeHandle) const;
45 
46  SG::ReadCondHandleKey<AthenaAttributeList> m_pathologyFolderKey {this, "PathologyFolder", "/LAR/HVPathologiesOfl/Pathologies", "Cool folder for HV pathologies" };
47  SG::ReadCondHandleKey<LArHVIdMapping> m_hvMappingKey {this, "HVMappingKey", "LArHVIdMap", "Key for mapping object" };
48  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this,"CaloDetDescrManager", "CaloDetDescrManager"};
49 
50  SG::WriteCondHandleKey<LArHVPathology> m_hvPathologyKey {this, "HVPAthologyKey", "LArHVPathology", "Key for HV pathologies in Cond. store"};
51 
52  ToolHandle <ILArHVMapTool> m_hvmapTool;
53 
54  const LArEM_ID* m_larem_id=nullptr;
55  const LArHEC_ID* m_larhec_id=nullptr;
56  const LArFCAL_ID* m_larfcal_id=nullptr;
57  const LArOnlineID* m_laronline_id=nullptr;
58  const LArHVLineID* m_hvlineHelper=nullptr;
59 
60  mutable std::mutex m_mut;
61 
62  TClass* m_klass=nullptr;
63 
64 };
65 
66 #endif
LArHVPathologyDbCondAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArHVPathologyDbCondAlg.h:48
LArHVPathologyDbCondAlg::initialize
virtual StatusCode initialize() override
Definition: LArHVPathologyDbCondAlg.cxx:40
LArHVPathologyDbCondAlg::m_hvmapTool
ToolHandle< ILArHVMapTool > m_hvmapTool
Definition: LArHVPathologyDbCondAlg.h:52
LArHVPathologyDbCondAlg::m_larfcal_id
const LArFCAL_ID * m_larfcal_id
Definition: LArHVPathologyDbCondAlg.h:56
LArHVPathology.h
LArHVPathologyDbCondAlg::LArHVPathologyDbCondAlg
LArHVPathologyDbCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArHVPathologyDbCondAlg.cxx:33
BeamSpot::mutex
std::mutex mutex
Definition: InDetBeamSpotVertex.cxx:18
LArHVPathologyDbCondAlg::m_klass
TClass * m_klass
Definition: LArHVPathologyDbCondAlg.h:62
LArHVPathologyDbCondAlg::fillElectMap
void fillElectMap(const CaloDetDescrManager *calodetdescrmgr, LArHVPathology *hvpath, SG::WriteCondHandle< LArHVPathology > &writeHandle) const
Definition: LArHVPathologyDbCondAlg.cxx:172
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
AthenaAttributeList.h
LArHVPathologyDbCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: LArHVPathologyDbCondAlg.cxx:111
ReadCondHandle.h
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArHVPathologyDbCondAlg
Definition: LArHVPathologyDbCondAlg.h:30
WriteHandle.h
Handle class for recording to StoreGate.
LArHVPathologyDbCondAlg::m_larem_id
const LArEM_ID * m_larem_id
Definition: LArHVPathologyDbCondAlg.h:54
LArHVPathologyDbCondAlg::m_pathologyFolderKey
SG::ReadCondHandleKey< AthenaAttributeList > m_pathologyFolderKey
Definition: LArHVPathologyDbCondAlg.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArHVIdMapping.h
LArHVPathologyDbCondAlg::m_hvlineHelper
const LArHVLineID * m_hvlineHelper
Definition: LArHVPathologyDbCondAlg.h:58
ILArHVMapTool.h
LArHVPathologyDbCondAlg::finalize
virtual StatusCode finalize() override
Definition: LArHVPathologyDbCondAlg.cxx:71
LArHVPathologyDbCondAlg::m_mut
std::mutex m_mut
Definition: LArHVPathologyDbCondAlg.h:60
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArOnlineID
Definition: LArOnlineID.h:20
SG::ReadCondHandleKey< AthenaAttributeList >
LArHVPathologyDbCondAlg::~LArHVPathologyDbCondAlg
virtual ~LArHVPathologyDbCondAlg()
Definition: LArHVPathologyDbCondAlg.cxx:37
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
LArHVPathology
Definition: LArHVPathology.h:15
SG::WriteCondHandleKey< LArHVPathology >
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArHVPathologyDbCondAlg::m_laronline_id
const LArOnlineID * m_laronline_id
Definition: LArHVPathologyDbCondAlg.h:57
ReadHandle.h
Handle class for reading from StoreGate.
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
LArHVPathologyDbCondAlg::m_hvPathologyKey
SG::WriteCondHandleKey< LArHVPathology > m_hvPathologyKey
Definition: LArHVPathologyDbCondAlg.h:50
LArHVPathologyDbCondAlg::m_larhec_id
const LArHEC_ID * m_larhec_id
Definition: LArHVPathologyDbCondAlg.h:55
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
LArHVPathologyDbCondAlg::m_hvMappingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvMappingKey
Definition: LArHVPathologyDbCondAlg.h:47
Identifier
Definition: IdentifierFieldParser.cxx:14
LArHVLineID
Helper for the Liquid Argon Calorimeter High-Voltage identifiers.
Definition: LArHVLineID.h:48