ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18#include<mutex>
19
20class LArEM_ID;
21class LArHEC_ID;
22class LArFCAL_ID;
23class LArOnlineID;
25class LArHVLineID;
26class Identifier;
27class TClass;
28
30{
31 public:
32 LArHVPathologyDbCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
33
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;
59
60 mutable std::mutex m_mut;
61
62 TClass* m_klass=nullptr;
63
64};
65
66#endif
Base class for conditions algorithms.
Definition of CaloDetDescrManager.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
Base class for conditions algorithms.
This class provides the client interface for accessing the detector description information common to...
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
Helper for the Liquid Argon Calorimeter High-Voltage identifiers.
Definition LArHVLineID.h:43
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
SG::WriteCondHandleKey< LArHVPathology > m_hvPathologyKey
ToolHandle< ILArHVMapTool > m_hvmapTool
virtual StatusCode finalize() override
void fillElectMap(const CaloDetDescrManager *calodetdescrmgr, LArHVPathology *hvpath, SG::WriteCondHandle< LArHVPathology > &writeHandle) const
virtual StatusCode execute(const EventContext &ctx) const override
const LArOnlineID * m_laronline_id
const LArHVLineID * m_hvlineHelper
SG::ReadCondHandleKey< AthenaAttributeList > m_pathologyFolderKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvMappingKey
virtual StatusCode initialize() override
LArHVPathologyDbCondAlg(const std::string &name, ISvcLocator *pSvcLocator)