|
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "GaudiKernel/DataObject.h"
18 #include "GaudiKernel/IOpaqueAddress.h"
19 #include "GaudiKernel/IRegistry.h"
20 #include "GaudiKernel/ISvcLocator.h"
21 #include "GaudiKernel/StatusCode.h"
36 m_tool(
"LVL1BS::CpmRoiByteStreamV1Tool/CpmRoiByteStreamV1Tool"),
37 m_robDataProvider(
"ROBDataProviderSvc",
name())
67 if (
sc.isFailure() ) {
73 return StatusCode::SUCCESS;
79 DataObject*& pObj )
const
85 return StatusCode::FAILURE;
88 const std::string
nm = *( pBS_Addr->par() );
93 const std::vector<uint32_t>& vID(
m_tool->sourceIDs(
nm));
100 auto roiCollection = std::make_unique<DataVector<LVL1::CPMRoI> >();
101 ATH_MSG_DEBUG(
" Number of ROB fragments is " << robFrags.size() );
102 if (robFrags.size() == 0) {
104 return StatusCode::SUCCESS;
111 return StatusCode::SUCCESS;
117 IOpaqueAddress*& pAddr )
const
121 REPORT_ERROR (StatusCode::FAILURE) <<
" Cannot cast to DataVector<CPMRoI>";
122 return StatusCode::FAILURE;
125 const std::string
nm = pObj->registry()->name();
130 return m_tool->convert( roiCollection );
CpmRoiByteStreamV1Cnv(ISvcLocator *svcloc)
#define REPORT_ERROR(SC)
Report an error.
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
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create CPM RoIs from ByteStream.
Gaudi converter base class with const interfaces.
ToolHandle< LVL1BS::CpmRoiByteStreamV1Tool > m_tool
Tool that does the actual work.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
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
uint32_t CLID
The Class ID type.
static constexpr long storageType()
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Create ByteStream from CPM RoIs.
Helpers for checking error return status codes and reporting errors.
virtual StatusCode initialize() override
static long storageType()
An STL vector of pointers that by default owns its pointed-to elements.
static const CLID & classID()
#define ATH_MSG_WARNING(x)
virtual ~CpmRoiByteStreamV1Cnv()