#include <MDT_Hid2RESrcID.h>
|
| static uint32_t | getRobID (uint32_t rod_id) |
| | Make a ROB Source ID from a ROD source ID.
|
| static uint32_t | getRosID (uint32_t rob_id) |
| | Make a ROS Source ID from a ROB source ID.
|
| static uint32_t | getDetID (uint32_t ros_id) |
| | Make a SubDetector ID from ROS source ID.
|
Definition at line 30 of file MDT_Hid2RESrcID.h.
◆ MDT_Hid2RESrcID()
| MDT_Hid2RESrcID::MDT_Hid2RESrcID |
( |
| ) |
|
constrcutor
Definition at line 24 of file MDT_Hid2RESrcID.cxx.
const MdtIdHelper * m_mdtIdHelper
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_readKey
◆ getDetID()
| uint32_t MDT_Hid2RESrcID::getDetID |
( |
uint32_t | ros_id | ) |
|
|
static |
Make a SubDetector ID from ROS source ID.
mapping SrcID from ROS to Det
Definition at line 112 of file MDT_Hid2RESrcID.cxx.
112 {
113
114
115 SourceIdentifier
id(ros_id);
116 SourceIdentifier
id2(
id.subdetector_id(), 0);
118}
◆ getRobID()
| uint32_t MDT_Hid2RESrcID::getRobID |
( |
uint32_t | rod_id | ) |
|
|
static |
Make a ROB Source ID from a ROD source ID.
mapping SrcID from ROD to ROB
Definition at line 88 of file MDT_Hid2RESrcID.cxx.
88 {
89 SourceIdentifier id = SourceIdentifier(rod_id);
90 SourceIdentifier
id2 = SourceIdentifier(
id.subdetector_id(),
id.module_id());
91
92
93
94
95
96
97 return rod_id;
98}
◆ getRodID()
| uint32_t MDT_Hid2RESrcID::getRodID |
( |
const Identifier & | offlineId | ) |
const |
Definition at line 33 of file MDT_Hid2RESrcID.cxx.
33 {
34
35
36
38
39 log << MSG::DEBUG <<
"Getting RODId of the Station " << MSG::hex << offlineId << MSG::dec <<
endmsg;
40
41 SG::ReadCondHandle<MuonMDT_CablingMap> readHandle{
m_readKey};
42 const MuonMDT_CablingMap* readCdo{*readHandle};
43 if (!readCdo) {
44
45 log << MSG::ERROR <<
"Null pointer to the read conditions object" <<
endmsg;
46 return 0;
47 }
49 if (!readCdo->
convert(offlineId, cabling_data)) {
50 log << MSG::ERROR <<
" Invalid identifier given " <<
endmsg;
51 return 0;
52 }
54
55 if (!online) {
56 log << MSG::DEBUG <<
"ROD Id of the Station " << MSG::hex <<
"0x" << offlineId <<
" not found" <<
endmsg;
58 } else {
59 log << MSG::DEBUG <<
"The ROD ID of the station "
61 }
62
63 eformat::SubDetector detid = (eformat::SubDetector)
cabling_data.subdetectorId;
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
80
82
83 return rod_id;
84}
MdtCablingData CablingData
bool getOnlineId(CablingData &cabling_data, MsgStream &log) const
return the online id given the offline id
bool convert(const CablingData &cabling_data, Identifier &id, bool check_valid=true) const
converts the cabling data into an identifier.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ getRosID()
| uint32_t MDT_Hid2RESrcID::getRosID |
( |
uint32_t | rob_id | ) |
|
|
static |
Make a ROS Source ID from a ROB source ID.
mapping SrcID from ROB to ROS
Definition at line 102 of file MDT_Hid2RESrcID.cxx.
102 {
103
104
105 SourceIdentifier
id(rob_id);
106 SourceIdentifier
id2(
id.subdetector_id(), 0);
108}
◆ set()
| StatusCode MDT_Hid2RESrcID::set |
( |
const MdtIdHelper * | mdtId | ) |
|
intialize the cabling service
Definition at line 26 of file MDT_Hid2RESrcID.cxx.
26 {
27
30 return StatusCode::SUCCESS;
31}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ setSpecialROBNumber()
| void MDT_Hid2RESrcID::setSpecialROBNumber |
( |
int | specialROBNumber | ) |
|
|
inline |
◆ m_mdtIdHelper
◆ m_readKey
◆ m_specialROBNumber
| int MDT_Hid2RESrcID::m_specialROBNumber |
|
private |
The documentation for this class was generated from the following files: