|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/MsgStream.h"
24 :
Converter( storageType(), classID(), svcloc ),
25 m_tool(
"RecMuCTPIByteStreamTool" ),
26 m_robDataProvider(
"ROBDataProviderSvc",
"RecMuCTPIByteStreamCnv" ) {
54 MsgStream
log(
msgSvc(),
"RecMuCTPIByteStreamCnv" );
69 return StatusCode::SUCCESS;
79 MsgStream
log(
msgSvc(),
"RecMuCTPIByteStreamCnv" );
85 log << MSG::ERROR <<
" Cannot cast to ByteStreamAddress " <<
endmsg ;
86 return StatusCode::FAILURE;
94 std::vector< uint32_t > vID;
95 vID.push_back( robId );
102 if ( robFrags.size() == 0 ) {
106 newRobId |= 0x00000b;
107 vID[0] = ( newRobId );
110 if ( robFrags.size() != 1 ) {
111 log << MSG::WARNING <<
" Number of ROB fragments for source ROB ID " << MSG::hex << newRobId <<
" (ROD ID "
115 return StatusCode::SUCCESS;
119 IROBDataProviderSvc::VROBFRAG::const_iterator
it = robFrags.begin();
125 return StatusCode::SUCCESS;
uint32_t getRobID(uint32_t rod_id) const
Make a ROB Source ID from a ROD source ID.
MuCTPISrcIdMap m_srcIdMap
Object storing the various IDs of the MuCTPI fragment.
static const CLID & classID()
Function needed by the framework.
ToolHandle< RecMuCTPIByteStreamTool > m_tool
Tool doing the actual conversion.
uint32_t getRodID() const
get a ROD Source ID
const ROBFragment * getROBFragment() const
Return the ROBFragment.
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
DataObject * asStorable(T *pObject)
Reconstruction Input Object of the MuCTPI hardware and simulation.
static const CLID & ID()
the CLID of T
virtual StatusCode initialize() override
Function connecting to all the needed services/tools.
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service used when reading the BS data.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override
Function creating the MuCTPI_RIO object from a MuCTPI ROB fragment.
std::vector< const ROBF * > VROBFRAG
uint32_t CLID
The Class ID type.
static long storageType()
Function needed by the framework.
static constexpr long storageType()
RecMuCTPIByteStreamCnv(ISvcLocator *svcloc)
Standard constructor.