ATLAS Offline Software
LArHVPathologyDbCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 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"
16 
17 #include<mutex>
18 
19 class LArEM_ID;
20 class LArHEC_ID;
21 class LArFCAL_ID;
22 class LArOnlineID;
24 class LArHVLineID;
25 class Identifier;
26 class TClass;
27 
29 {
30  public:
31  LArHVPathologyDbCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
32 
33  virtual ~LArHVPathologyDbCondAlg();
34 
35  virtual StatusCode initialize() override;
36  virtual StatusCode finalize() override;
37  virtual StatusCode execute(const EventContext& ctx) const override;
38 
39  private:
40 
41  void fillElectMap(const CaloDetDescrManager* calodetdescrmgr,
42  LArHVPathology* hvpath,
43  SG::WriteCondHandle<LArHVPathology>& writeHandle) const;
44 
45  SG::ReadCondHandleKey<AthenaAttributeList> m_pathologyFolderKey {this, "PathologyFolder", "/LAR/HVPathologiesOfl/Pathologies", "Cool folder for HV pathologies" };
46  SG::ReadCondHandleKey<LArHVIdMapping> m_hvMappingKey {this, "HVMappingKey", "LArHVIdMap", "Key for mapping object" };
47  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this,"CaloDetDescrManager", "CaloDetDescrManager"};
48 
49  SG::WriteCondHandleKey<LArHVPathology> m_hvPathologyKey {this, "HVPAthologyKey", "LArHVPathology", "Key for HV pathologies in Cond. store"};
50 
51  const LArEM_ID* m_larem_id=nullptr;
52  const LArHEC_ID* m_larhec_id=nullptr;
53  const LArFCAL_ID* m_larfcal_id=nullptr;
54  const LArOnlineID* m_laronline_id=nullptr;
55  const LArHVLineID* m_hvlineHelper=nullptr;
56 
57  mutable std::mutex m_mut;
58 
59  TClass* m_klass=nullptr;
60 
61 };
62 
63 #endif
LArHVPathologyDbCondAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArHVPathologyDbCondAlg.h:47
LArHVPathologyDbCondAlg::initialize
virtual StatusCode initialize() override
Definition: LArHVPathologyDbCondAlg.cxx:40
LArHVPathologyDbCondAlg::m_larfcal_id
const LArFCAL_ID * m_larfcal_id
Definition: LArHVPathologyDbCondAlg.h:53
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:59
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:29
WriteHandle.h
Handle class for recording to StoreGate.
LArHVPathologyDbCondAlg::m_larem_id
const LArEM_ID * m_larem_id
Definition: LArHVPathologyDbCondAlg.h:51
LArHVPathologyDbCondAlg::m_pathologyFolderKey
SG::ReadCondHandleKey< AthenaAttributeList > m_pathologyFolderKey
Definition: LArHVPathologyDbCondAlg.h:45
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
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:55
LArHVPathologyDbCondAlg::finalize
virtual StatusCode finalize() override
Definition: LArHVPathologyDbCondAlg.cxx:71
LArHVPathologyDbCondAlg::m_mut
std::mutex m_mut
Definition: LArHVPathologyDbCondAlg.h:57
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
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:54
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:49
LArHVPathologyDbCondAlg::m_larhec_id
const LArHEC_ID * m_larhec_id
Definition: LArHVPathologyDbCondAlg.h:52
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
LArHVPathologyDbCondAlg::m_hvMappingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvMappingKey
Definition: LArHVPathologyDbCondAlg.h:46
LArHVLineID
Helper for the Liquid Argon Calorimeter High-Voltage identifiers.
Definition: LArHVLineID.h:48