7#include "GaudiKernel/MsgStream.h"
26 m_tool(
"RecCTPByteStreamTool" ),
55 MsgStream log( msgSvc(),
"RecCTPByteStreamCnv" );
56 log << MSG::DEBUG <<
"RecCTPByteStreamCnv in initialize()" <<
endmsg;
62 log << MSG::DEBUG <<
"Connected to RecCTPByteStreamTool" <<
endmsg;
68 log << MSG::DEBUG <<
"Connected to ROBDataProviderSvc" <<
endmsg;
70 return StatusCode::SUCCESS;
80 MsgStream log( msgSvc(),
"RecCTPByteStreamCnv" );
81 log << MSG::DEBUG <<
"RecCTPByteStreamCnv::createObj() called" <<
endmsg;
86 log << MSG::ERROR <<
" Can not cast to ByteStreamAddress " <<
endmsg ;
87 return StatusCode::FAILURE;
90 log << MSG::DEBUG <<
" Creating Objects: " << *( pBS_Addr->par() ) <<
endmsg;
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;
#define ATH_CHECK
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
Defines the ROB data entity. The ROB data is an abstract entity that is used to decouple the raw even...
ROBData_T< OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment, OFFLINE_FRAGMENTS_NAMESPACE::PointerType > ROBData
convert to and from a SG storable
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
std::vector< const ROBF * > VROBFRAG
CTPSrcIdMap m_srcIdMap
Object storing the various IDs of the CTP fragment.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
Function creating the CTP_RIO object from a CTP ROB fragment.
virtual StatusCode initialize() override
Function connecting to all the needed services/tools.
static const CLID & classID()
Function needed by the framework.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service used when reading the BS data.
ToolHandle< RecCTPByteStreamTool > m_tool
Tool doing the actual conversion.
static long storageType()
Function needed by the framework.
RecCTPByteStreamCnv(ISvcLocator *svcloc)
Standard constructor.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)