8 #include "GaudiKernel/Bootstrap.h"
9 #include "GaudiKernel/IMessageSvc.h"
10 #include "GaudiKernel/ISvcLocator.h"
11 #include "GaudiKernel/MsgStream.h"
13 #include "eformat/SourceIdentifier.h"
15 using eformat::helper::SourceIdentifier;
29 return StatusCode::SUCCESS;
36 IMessageSvc*
msgSvc =
nullptr;
37 ISvcLocator* svcLocator = Gaudi::svcLocator();
39 if (
sc == StatusCode::FAILURE)
throw std::runtime_error(
"Unable to get MessageSvc");
41 MsgStream
log(
msgSvc,
"MDT_Hid2RESrcID::getRodID");
43 log <<
MSG::DEBUG <<
"Getting RODId of the Station " << MSG::hex << offlineId << MSG::dec <<
endmsg;
49 log << MSG::ERROR <<
"Null pointer to the read conditions object" <<
endmsg;
54 log << MSG::ERROR <<
" Invalid identifier given " <<
endmsg;
60 log <<
MSG::DEBUG <<
"ROD Id of the Station " << MSG::hex <<
"0x" << offlineId <<
" not found" <<
endmsg;
67 eformat::SubDetector detid = (eformat::SubDetector)
cabling_data.subdetectorId;
93 SourceIdentifier
id = SourceIdentifier(rod_id);
94 SourceIdentifier
id2 = SourceIdentifier(
id.subdetector_id(),
id.module_id());
109 SourceIdentifier
id(rob_id);
110 SourceIdentifier
id2(
id.subdetector_id(), 0);
119 SourceIdentifier
id(ros_id);
120 SourceIdentifier
id2(
id.subdetector_id(), 0);