#include <Hid2RESrcID.h>
Definition at line 38 of file Hid2RESrcID.h.
◆ COLL_MAP
◆ COLLECTION_ID
◆ Hid2RESrcID()
| Hid2RESrcID::Hid2RESrcID |
( |
| ) |
|
constructor
Definition at line 30 of file Hid2RESrcID.cxx.
30 :
33{
34
35}
const LArOnlineID * m_onlineHelper
◆ getDetID()
| uint32_t Hid2RESrcID::getDetID |
( |
uint32_t | ros_id | ) |
const |
Make a SubDetector ID from ROS source ID.
mapping SrcID from ROS to Det
Definition at line 120 of file Hid2RESrcID.cxx.
121{
122
123
124 SourceIdentifier id = SourceIdentifier(ros_id);
125 SourceIdentifier id2 = SourceIdentifier(id.subdetector_id(), 0);
126 return id2.code();
127}
◆ getRobID()
| uint32_t Hid2RESrcID::getRobID |
( |
uint32_t | rod_id | ) |
const |
Make a ROB Source ID from a ROD source ID.
mapping SrcID from ROD to ROB
Definition at line 100 of file Hid2RESrcID.cxx.
101{
103}
RodRobIdMap m_rodRobIdMap
◆ getRodID()
make a ROD SrcID for a HWIdentifier
Definition at line 88 of file Hid2RESrcID.cxx.
90{
91
94
96}
uint32_t getRodIDFromROM(const COLLECTION_ID &hid) const
make a ROD SrcID for a COLLECTION_ID
HWIdentifier getReadoutModuleID(const HWIdentifier &id) const
◆ getRodIDFromROM()
make a ROD SrcID for a COLLECTION_ID
Definition at line 74 of file Hid2RESrcID.cxx.
75{
76
80 <<
"invalid COLL ID in hex "<<std::hex<<
id.get_compact()<<std::dec<<
endmsg;
81 std::abort();
82 }
83
84 return (*it).second ;
85}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
◆ getRosID()
| uint32_t Hid2RESrcID::getRosID |
( |
uint32_t | rob_id | ) |
const |
Make a ROS Source ID from a ROB source ID.
mapping SrcID from ROB to ROS
Definition at line 108 of file Hid2RESrcID.cxx.
109{
110
111
112 SourceIdentifier id = SourceIdentifier(rob_id);
113 SourceIdentifier id2 = SourceIdentifier(id.subdetector_id(), 0);
114 return id2.code();
115
116}
◆ initialize() [1/2]
Definition at line 37 of file Hid2RESrcID.cxx.
38{
40 return StatusCode::SUCCESS;
41}
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode initialize(const LArFebRodMapping &rodMapping)
const std::vector< HWIdentifier > & getLArRoModIDvec() const
"iterator" on LArReadoutModuleIDs
◆ initialize() [2/2]
Definition at line 44 of file Hid2RESrcID.cxx.
45{
46
47 ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "Hid2RESrcID");
50
51
52
53 eformat::SubDetector detid ;
54 for (const HWIdentifier& mId : roms)
55 {
58
59 SourceIdentifier sid = SourceIdentifier(detid,m);
61
64
65 }
66
67
69
70 return StatusCode::SUCCESS;
71}
LArReadoutModuleService m_readoutModuleSvc
◆ isInitialized()
| bool Hid2RESrcID::isInitialized |
( |
| ) |
const |
|
inline |
◆ m_coll2ROD
◆ m_initialized
| bool Hid2RESrcID::m_initialized |
|
private |
◆ m_onlineHelper
◆ m_readoutModuleSvc
◆ m_rodRobIdMap
The documentation for this class was generated from the following files: