ATLAS Offline Software
LArRoIMapCondAlg.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef LARRECUTILS_LARROIMAPCONDALG_H
14 #define LARRECUTILS_LARROIMAPCONDALG_H
15 
16 
24 
25 
26 class LArOnlineID;
27 class CaloLVL1_TT_ID;
28 class LArEM_ID;
29 class LArHEC_ID;
30 class LArFCAL_ID;
31 
32 
37  : public AthReentrantAlgorithm
38 {
39 public:
41 
42 
46  virtual StatusCode initialize() override;
47 
48 
52  virtual StatusCode execute (const EventContext& ctx) const override;
53 
54 
55 private:
57  const LArOnOffIdMapping& onOffId,
58  const LArFebRodMapping& febRod,
59  const Identifier& id) const;
60 
61  const CaloLVL1_ID* m_TT_ID = nullptr;
62  const LArOnlineID* m_onlineID = nullptr;
63  const LArEM_ID* m_em_id = nullptr;
64  const LArHEC_ID* m_hec_id = nullptr ;
65  const LArFCAL_ID* m_fcal_id = nullptr;
66 
67  ToolHandle<CaloTriggerTowerService> m_ttSvc
68  { this, "TriggerTowerSvc", "CaloTriggerTowerService", "Towers tool"};
69 
71  { this, "LArOnOffIdMap", "LArOnOffIdMap", "LArOnOffIdMapping object" };
73  { this, "LArFebRodMap", "LArFebRodMap", "LArFebRodMap object" };
75  { this, "LArRoIMapKey", "LArRoIMap", "LArRoIMap key" };
76 };
77 
78 
79 #endif // not LARRECUTILS_LARROIMAPCONDALG_H
LArFebRodMapping
Definition: LArFebRodMapping.h:17
LArFebRodMapping.h
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
LArRoIMapCondAlg::m_febRodKey
SG::ReadCondHandleKey< LArFebRodMapping > m_febRodKey
Definition: LArRoIMapCondAlg.h:73
WriteCondHandleKey.h
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
LArRoIMap.h
Mapping between calorimeter trigger id to offline/online Identifier.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
LArRoIMapCondAlg::m_hec_id
const LArHEC_ID * m_hec_id
Definition: LArRoIMapCondAlg.h:64
LArRoIMapCondAlg::m_onOffIdKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_onOffIdKey
Definition: LArRoIMapCondAlg.h:71
LArRoIMapCondAlg::m_TT_ID
const CaloLVL1_ID * m_TT_ID
Definition: LArRoIMapCondAlg.h:61
LArRoIMapCondAlg::m_ttSvc
ToolHandle< CaloTriggerTowerService > m_ttSvc
Definition: LArRoIMapCondAlg.h:68
LArRoIMapCondAlg::addEntry
StatusCode addEntry(LArRoIMap &m, const LArOnOffIdMapping &onOffId, const LArFebRodMapping &febRod, const Identifier &id) const
Definition: LArRoIMapCondAlg.cxx:79
LArOnOffIdMapping.h
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArRoIMapCondAlg::m_fcal_id
const LArFCAL_ID * m_fcal_id
Definition: LArRoIMapCondAlg.h:65
LArRoIMapCondAlg
Conditions algorithm producing LArRoIMap.
Definition: LArRoIMapCondAlg.h:38
ReadCondHandleKey.h
AthReentrantAlgorithm.h
LArRoIMapCondAlg::m_onlineID
const LArOnlineID * m_onlineID
Definition: LArRoIMapCondAlg.h:62
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
LArRoIMapCondAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi execute method.
Definition: LArRoIMapCondAlg.cxx:48
LArOnlineID
Definition: LArOnlineID.h:20
LArRoIMapCondAlg::initialize
virtual StatusCode initialize() override
Gaudi initialize method.
Definition: LArRoIMapCondAlg.cxx:27
SG::ReadCondHandleKey< LArOnOffIdMapping >
CaloTriggerTowerService.h
LArRoIMapCondAlg::m_em_id
const LArEM_ID * m_em_id
Definition: LArRoIMapCondAlg.h:63
LArRoIMap
Mapping between calorimeter trigger id to offline/online Identifier.
Definition: LArRoIMap.h:31
SG::WriteCondHandleKey< LArRoIMap >
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
LArRoIMapCondAlg::m_LArRoIMapKey
SG::WriteCondHandleKey< LArRoIMap > m_LArRoIMapKey
Definition: LArRoIMapCondAlg.h:75
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20
Identifier
Definition: IdentifierFieldParser.cxx:14