ATLAS Offline Software
Loading...
Searching...
No Matches
LArHVPathologyDbAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARCONDUTILS_LARHVPATHOLOGYDBALG_H
6#define LARCONDUTILS_LARHVPATHOLOGYDBALG_H
7
14
17
18#include <optional>
19#include <memory>
20
21class LArEM_ID;
22class LArHEC_ID;
23class LArFCAL_ID;
24class LArOnlineID;
25class CaloIdManager;
26class Identifier;
27
28
34{
35 public:
36
39
40 virtual StatusCode initialize() override;
41 virtual StatusCode execute() override;
42
43 private:
44 std::optional<LArHVPathologiesDb> createCondObjects (const EventContext& ctx, const CaloDetDescrManager* calodetdescrmgr) const;
45 StatusCode printCondObjects (const EventContext& ctx, const CaloDetDescrManager* calodetdescrmgr, const std::vector<LArHVPathologiesDb::LArHVElectPathologyDb>* path=nullptr) const;
46
47 std::vector<unsigned int> getElectInd(const LArHVIdMapping& hvIdMapping,
48 const Identifier& id, unsigned int module, unsigned int line,
49 const CaloDetDescrManager* calodetdescrmgr) const;
50
51 int getHVline(const LArHVIdMapping& hvIdMapping,
52 const Identifier& id, short unsigned int ElectInd,
53 const CaloDetDescrManager* calodetdescrmgr) const;
54
55
56 std::unique_ptr<AthenaAttributeList> hvPathology2AttrList(const LArHVPathologiesDb& pathologyContainer) const;
57
58 BooleanProperty m_writeCondObjs{this,"WriteCondObjs",false};
59 StringProperty m_inpFile{this,"InpFile",{}};
60 StringProperty m_outFile{this,"OutFile",{}};
61 StringProperty m_folder{this,"Folder","/LAR/HVPathologiesOfl/Pathologies"};
62 IntegerProperty m_mode{this,"Mode",0,"Mode to read file (0=offlineID/elecID, 1=online ID fields + HV module/line, 2=type is HV value to overwrite)"};
63
64 const CaloIdManager* m_caloIdMgr{nullptr};
65 const LArEM_ID* m_larem_id{nullptr};
66 const LArHEC_ID* m_larhec_id{nullptr};
67 const LArFCAL_ID* m_larfcal_id{nullptr};
68 const LArOnlineID* m_laronline_id{nullptr};
69
71 {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"};
73 {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};
75 {this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" };
76
78 {this, "HVPAthologyKey", "LArHVPathology", "Key for HV pathologies in Cond. store"};
79};
80
81#endif
Definition of CaloDetDescrManager.
An AttributeList represents a logical row of attributes in a metadata table.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
This class provides the client interface for accessing the detector description information common to...
This class initializes the Calo (LAr and Tile) offline identifiers.
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
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
virtual StatusCode execute() override
const CaloIdManager * m_caloIdMgr
std::vector< unsigned int > getElectInd(const LArHVIdMapping &hvIdMapping, const Identifier &id, unsigned int module, unsigned int line, const CaloDetDescrManager *calodetdescrmgr) const
virtual StatusCode initialize() override
const LArHEC_ID * m_larhec_id
SG::ReadCondHandleKey< LArHVPathology > m_hvPathologyKey
std::unique_ptr< AthenaAttributeList > hvPathology2AttrList(const LArHVPathologiesDb &pathologyContainer) const
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
StatusCode printCondObjects(const EventContext &ctx, const CaloDetDescrManager *calodetdescrmgr, const std::vector< LArHVPathologiesDb::LArHVElectPathologyDb > *path=nullptr) const
~LArHVPathologyDbAlg()=default
const LArFCAL_ID * m_larfcal_id
std::optional< LArHVPathologiesDb > createCondObjects(const EventContext &ctx, const CaloDetDescrManager *calodetdescrmgr) const
BooleanProperty m_writeCondObjs
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
int getHVline(const LArHVIdMapping &hvIdMapping, const Identifier &id, short unsigned int ElectInd, const CaloDetDescrManager *calodetdescrmgr) const
const LArEM_ID * m_larem_id
const LArOnlineID * m_laronline_id