#include <Hid2RESrcID.h>
Definition at line 38 of file Hid2RESrcID.h.
◆ COLL_MAP
◆ COLLECTION_ID
◆ Hid2RESrcID()
| Hid2RESrcID::Hid2RESrcID |
( |
| ) |
|
constructor
Definition at line 29 of file Hid2RESrcID.cxx.
29 :
32{
33
34}
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 118 of file Hid2RESrcID.cxx.
119{
120
121
122 SourceIdentifier id = SourceIdentifier(ros_id);
123 SourceIdentifier id2 = SourceIdentifier(id.subdetector_id(), 0);
124 return id2.code();
125}
◆ 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 98 of file Hid2RESrcID.cxx.
99{
101}
RodRobIdMap m_rodRobIdMap
◆ getRodID()
make a ROD SrcID for a HWIdentifier
Definition at line 86 of file Hid2RESrcID.cxx.
88{
89
92
94}
uint32_t getRodIDFromROM(const COLLECTION_ID &hid) const
make a ROD SrcID for a COLLECTION_ID
HWIdentifier getReadoutModuleID(const HWIdentifier &id) const
◆ getRodIDFromROM()
| uint32_t Hid2RESrcID::getRodIDFromROM |
( |
const COLLECTION_ID & | hid | ) |
const |
make a ROD SrcID for a COLLECTION_ID
Definition at line 73 of file Hid2RESrcID.cxx.
74{
75
78 std::cout <<" H2d2RESrcID invalid COLL ID in hex "<<std::hex<<id.get_compact()<<std::dec<<std::endl;
79 std::abort();
80 }
81
82 return (*it).second ;
83}
◆ 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 106 of file Hid2RESrcID.cxx.
107{
108
109
110 SourceIdentifier id = SourceIdentifier(rob_id);
111 SourceIdentifier id2 = SourceIdentifier(id.subdetector_id(), 0);
112 return id2.code();
113
114}
◆ initialize() [1/2]
Definition at line 36 of file Hid2RESrcID.cxx.
37{
39 return StatusCode::SUCCESS;
40}
#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]
| StatusCode Hid2RESrcID::initialize |
( |
const std::vector< HWIdentifier > & | roms | ) |
|
|
private |
Definition at line 43 of file Hid2RESrcID.cxx.
44{
45
46 ServiceHandle<StoreGateSvc> detStore ("DetectorStore", "Hid2RESrcID");
49
50
51
52 eformat::SubDetector detid ;
53 for (const HWIdentifier& mId : roms)
54 {
57
58 SourceIdentifier sid = SourceIdentifier(detid,m);
60
63
64 }
65
66
68
69 return StatusCode::SUCCESS;
70}
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: