|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/MsgStream.h"
25 :
Converter( storageType(), classID(), svcloc ),
26 m_tool(
"RecCTPByteStreamTool" ),
27 m_robDataProvider(
"ROBDataProviderSvc",
"RecCTPByteStreamCnv" ) {
55 MsgStream
log(
msgSvc(),
"RecCTPByteStreamCnv" );
70 return StatusCode::SUCCESS;
80 MsgStream
log(
msgSvc(),
"RecCTPByteStreamCnv" );
86 log << MSG::ERROR <<
" Can not cast to ByteStreamAddress " <<
endmsg ;
87 return StatusCode::FAILURE;
97 log <<
MSG::DEBUG <<
"expected ROB sub-detector ID: " << std::hex
98 << robId << std::dec <<
endmsg;
100 std::vector< uint32_t > vID;
101 vID.push_back( robId );
108 if ( robFrags.size() != 1 ) {
109 log << MSG::WARNING <<
" Number of ROB fragments for source ID 0x" << MSG::hex << robId
110 <<
" is " << robFrags.size() <<
endmsg;
114 return StatusCode::SUCCESS;
117 IROBDataProviderSvc::VROBFRAG::const_iterator
it = robFrags.begin();
123 return StatusCode::SUCCESS;
const ROBFragment * getROBFragment() const
Return the ROBFragment.
ToolHandle< RecCTPByteStreamTool > m_tool
Tool doing the actual conversion.
convert to and from a SG storable
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
templete data class to wrap ROB fragment for accessing ROD data
static long storageType()
Function needed by the framework.
DataObject * asStorable(T *pObject)
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
Function creating the CTP_RIO object from a CTP ROB fragment.
static const CLID & ID()
the CLID of T
static const CLID & classID()
Function needed by the framework.
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service used when reading the BS data.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
std::vector< const ROBF * > VROBFRAG
uint32_t CLID
The Class ID type.
virtual StatusCode initialize() override
Function connecting to all the needed services/tools.
static constexpr long storageType()
RecCTPByteStreamCnv(ISvcLocator *svcloc)
Standard constructor.
CTPSrcIdMap m_srcIdMap
Object storing the various IDs of the CTP fragment.
uint32_t getRodID() const
get a ROD Source ID
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.