ATLAS Offline Software
LArHVPathologyDbAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARCONDUTILS_LARHVPATHOLOGYDBALG_H
6 #define LARCONDUTILS_LARHVPATHOLOGYDBALG_H
7 
11 #include "GaudiKernel/ToolHandle.h"
15 
18 class LArEM_ID;
19 class LArHEC_ID;
20 class LArFCAL_ID;
21 class LArOnlineID;
22 class CaloIdManager;
23 class Identifier;
24 
26 {
27  public:
28  LArHVPathologyDbAlg(const std::string& name, ISvcLocator* pSvcLocator);
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute() override;
33  virtual StatusCode stop() override;
34 
35  private:
36  StatusCode createCondObjects (const EventContext& ctx, const CaloDetDescrManager* calodetdescrmgr);
37  StatusCode printCondObjects (const EventContext& ctx, const CaloDetDescrManager* calodetdescrmgr);
39  std::vector<unsigned int> getElectInd(const LArHVIdMapping& hvIdMapping,
40  const Identifier& id, unsigned int module, unsigned int line,
41  const CaloDetDescrManager* calodetdescrmgr);
42  int getHVline(const LArHVIdMapping& hvIdMapping,
43  const Identifier& id, short unsigned int ElectInd,
44  const CaloDetDescrManager* calodetdescrmgr);
45 
46  BooleanProperty m_writeCondObjs;
47  StringProperty m_inpFile;
48  StringProperty m_outFile;
49 
50  StringProperty m_folder;
51  StringProperty m_outpTag;
52 
54  ToolHandle<ILArHVPathologyDbTool> m_pathologyTool;
55 
56  int m_mode;
57 
58  const CaloIdManager* m_caloIdMgr{nullptr};
59  const LArEM_ID* m_larem_id{nullptr};
60  const LArHEC_ID* m_larhec_id{nullptr};
61  const LArFCAL_ID* m_larfcal_id{nullptr};
62  const LArOnlineID* m_laronline_id{nullptr};
63 
65  {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"};
67  {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};
69  {this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" };
70 };
71 
72 #endif
LArHVPathologyDbAlg::m_larfcal_id
const LArFCAL_ID * m_larfcal_id
Definition: LArHVPathologyDbAlg.h:61
LArHVPathologyDbAlg::registerCondObjects
StatusCode registerCondObjects()
Definition: LArHVPathologyDbAlg.cxx:314
LArHVPathologyDbAlg::m_larem_id
const LArEM_ID * m_larem_id
Definition: LArHVPathologyDbAlg.h:59
checkFileSG.line
line
Definition: checkFileSG.py:75
LArHVPathologyDbAlg::m_folder
StringProperty m_folder
Definition: LArHVPathologyDbAlg.h:50
LArHVPathologyDbAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArHVPathologyDbAlg.h:69
LArHVPathologyDbAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArHVPathologyDbAlg.h:67
LArHVPathologyDbAlg::~LArHVPathologyDbAlg
~LArHVPathologyDbAlg()
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArHVPathologyDbAlg::m_hvCablingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
Definition: LArHVPathologyDbAlg.h:65
ILArHVPathologyDbTool
Definition: ILArHVPathologyDbTool.h:21
LArHVPathologyDbAlg::m_laronline_id
const LArOnlineID * m_laronline_id
Definition: LArHVPathologyDbAlg.h:62
LArHVPathologyDbAlg::m_mode
int m_mode
Definition: LArHVPathologyDbAlg.h:56
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
LArHVPathologyDbAlg::m_pathologyTool
ToolHandle< ILArHVPathologyDbTool > m_pathologyTool
Definition: LArHVPathologyDbAlg.h:54
LArHVPathologyDbAlg::m_writeCondObjs
BooleanProperty m_writeCondObjs
Definition: LArHVPathologyDbAlg.h:46
AthAlgorithm.h
python.PyAthena.module
module
Definition: PyAthena.py:131
LArHVPathologyDbAlg::m_inpFile
StringProperty m_inpFile
Definition: LArHVPathologyDbAlg.h:47
LArHVPathologyDbAlg::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition: LArHVPathologyDbAlg.h:53
LArHVPathologyDbAlg::printCondObjects
StatusCode printCondObjects(const EventContext &ctx, const CaloDetDescrManager *calodetdescrmgr)
Definition: LArHVPathologyDbAlg.cxx:252
LArOnOffIdMapping.h
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition: CaloIdManager.h:45
LArHVPathologyDbAlg::m_outFile
StringProperty m_outFile
Definition: LArHVPathologyDbAlg.h:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArHVIdMapping.h
LArHVPathologyDbAlg::createCondObjects
StatusCode createCondObjects(const EventContext &ctx, const CaloDetDescrManager *calodetdescrmgr)
Definition: LArHVPathologyDbAlg.cxx:138
LArHVPathologyDbAlg::m_outpTag
StringProperty m_outpTag
Definition: LArHVPathologyDbAlg.h:51
IIOVRegistrationSvc
This is an interface to a service used to register conditions objects in the Interval of Validity (IO...
Definition: IIOVRegistrationSvc.h:51
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
LArHVPathologyDbAlg::getElectInd
std::vector< unsigned int > getElectInd(const LArHVIdMapping &hvIdMapping, const Identifier &id, unsigned int module, unsigned int line, const CaloDetDescrManager *calodetdescrmgr)
Definition: LArHVPathologyDbAlg.cxx:330
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArOnlineID
Definition: LArOnlineID.h:20
LArHVPathologyDbAlg::stop
virtual StatusCode stop() override
Definition: LArHVPathologyDbAlg.cxx:119
LArHVPathologyDbAlg::initialize
virtual StatusCode initialize() override
Definition: LArHVPathologyDbAlg.cxx:55
LArHVPathologyDbAlg
Definition: LArHVPathologyDbAlg.h:26
SG::ReadCondHandleKey< LArHVIdMapping >
LArHVPathologyDbAlg::m_larhec_id
const LArHEC_ID * m_larhec_id
Definition: LArHVPathologyDbAlg.h:60
LArHVPathologyDbAlg::LArHVPathologyDbAlg
LArHVPathologyDbAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArHVPathologyDbAlg.cxx:33
LArHVIdMapping
Definition: LArHVIdMapping.h:21
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
LArHVPathologyDbAlg::getHVline
int getHVline(const LArHVIdMapping &hvIdMapping, const Identifier &id, short unsigned int ElectInd, const CaloDetDescrManager *calodetdescrmgr)
Definition: LArHVPathologyDbAlg.cxx:430
LArHVPathologyDbAlg::execute
virtual StatusCode execute() override
Definition: LArHVPathologyDbAlg.cxx:86
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArHVPathologyDbAlg::m_caloIdMgr
const CaloIdManager * m_caloIdMgr
Definition: LArHVPathologyDbAlg.h:58
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
ServiceHandle< IIOVRegistrationSvc >
Identifier
Definition: IdentifierFieldParser.cxx:14