![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "GaudiKernel/DataObject.h"
19 #include "GaudiKernel/IOpaqueAddress.h"
20 #include "GaudiKernel/IRegistry.h"
21 #include "GaudiKernel/ISvcLocator.h"
22 #include "GaudiKernel/StatusCode.h"
37 m_tool(
"LVL1BS::CpmRoiByteStreamTool/CpmRoiByteStreamTool"),
38 m_robDataProvider(
"ROBDataProviderSvc",
name())
68 if (
sc.isFailure() ) {
74 return StatusCode::SUCCESS;
80 DataObject*& pObj )
const
86 return StatusCode::FAILURE;
89 const std::string
nm = *( pBS_Addr->par() );
94 const std::vector<uint32_t>& vID(
m_tool->sourceIDs(
nm));
101 auto roiCollection = std::make_unique<DataVector<LVL1::CPMRoI> >();
102 ATH_MSG_DEBUG(
" Number of ROB fragments is " << robFrags.size() );
104 if (robFrags.size() == 0) {
106 return StatusCode::SUCCESS;
113 return StatusCode::SUCCESS;
119 IOpaqueAddress*& pAddr )
const
124 return StatusCode::FAILURE;
127 const std::string
nm = pObj->registry()->name();
132 return m_tool->convert( roiCollection );
virtual StatusCode initialize() override
std::vector< Identifier > ID
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
convert to and from a SG storable
static long storageType()
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
DataObject * asStorable(T *pObject)
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Create ByteStream from CPM RoIs.
Gaudi converter base class with const interfaces.
ToolHandle< LVL1BS::CpmRoiByteStreamTool > m_tool
Tool that does the actual work.
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
Default, invalid implementation of ClassID_traits.
std::vector< const ROBF * > VROBFRAG
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create CPM RoIs from ByteStream.
uint32_t CLID
The Class ID type.
static constexpr long storageType()
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
Helpers for checking error return status codes and reporting errors.
virtual ~CpmRoiByteStreamCnv()
An STL vector of pointers that by default owns its pointed-to elements.
CpmRoiByteStreamCnv(ISvcLocator *svcloc)
#define ATH_MSG_WARNING(x)
static const CLID & classID()